kopia lustrzana https://github.com/backface/turtlestitch
check for undefined
rodzic
4b4a0c658a
commit
a323287708
|
@ -8,7 +8,9 @@ function BeetleCloud (url, ide) {
|
||||||
BeetleCloud.prototype.init = function (url, ide) {
|
BeetleCloud.prototype.init = function (url, ide) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.ide = ide;
|
this.ide = ide;
|
||||||
|
if (typeof this.url !== 'undefined') {
|
||||||
this.checkCredentials();
|
this.checkCredentials();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
BeetleCloud.prototype.parseDict = Cloud.prototype.parseDict;
|
BeetleCloud.prototype.parseDict = Cloud.prototype.parseDict;
|
||||||
|
@ -245,6 +247,10 @@ BeetleCloud.prototype.saveProject = function (ignorethis, discardthis, callBack,
|
||||||
|
|
||||||
myself.ide.showMessage('Uploading project...');
|
myself.ide.showMessage('Uploading project...');
|
||||||
|
|
||||||
|
if (typeof myself.ide.tags == 'undefined') {
|
||||||
|
myself.ide.tags = ""
|
||||||
|
}
|
||||||
|
|
||||||
//(path, body, callBack, errorCall, errorMsg)
|
//(path, body, callBack, errorCall, errorMsg)
|
||||||
myself.post(
|
myself.post(
|
||||||
'/projects/save?projectname='
|
'/projects/save?projectname='
|
||||||
|
|
Ładowanie…
Reference in New Issue