summaryrefslogtreecommitdiff
path: root/www/js/api.js
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-01-01 13:27:10 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-01-01 13:27:10 -0500
commit902180ba926905f6002739919c4a814633ed3474 (patch)
treeedbc8050390a592b815ce43dd43687fdd6225f07 /www/js/api.js
parent864d115f229ce8cbd20deb8670831802da8c9216 (diff)
downloadhtml5ks-902180ba926905f6002739919c4a814633ed3474.tar.xz
html5ks-902180ba926905f6002739919c4a814633ed3474.zip
Refactoring, remove all fullscreen
Diffstat (limited to 'www/js/api.js')
-rw-r--r--www/js/api.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/www/js/api.js b/www/js/api.js
index 768face..a46511f 100644
--- a/www/js/api.js
+++ b/www/js/api.js
@@ -26,7 +26,7 @@ window.html5ks.api = new (function () {
}
}.bind(this), 50);
}
- return when.defer().resolve();
+ return when.resolve();
},
play: function (channel, name, ignore, fade) {
@@ -88,7 +88,7 @@ window.html5ks.api = new (function () {
} else {
audio.pause();
}
- return when.defer().resolve();
+ return when.resolve();
},
@@ -181,7 +181,7 @@ window.html5ks.api = new (function () {
return this.say(cmd, args[0]);
} else {
console.error("no such cmd " + cmd);
- return when.defer().resolve();
+ return when.resolve();
}
}
},
@@ -201,7 +201,7 @@ window.html5ks.api = new (function () {
default:
return windw.style.display !== "none";
}
- return when.defer().resolve();
+ return when.resolve();
},
@@ -308,7 +308,7 @@ window.html5ks.api = new (function () {
html5ks.elements.show.removeChild(show[i]);
}
}
- return when.defer().resolve();
+ return when.resolve();
},
tag: function (str) {
@@ -499,7 +499,7 @@ window.html5ks.api = new (function () {
default:
console.error("no such nvl action " + action);
}
- return when.defer().resolve();
+ return when.resolve();
},
centered: function (text) {