summaryrefslogtreecommitdiff
path: root/www/js/menu.js
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2013-12-03 14:22:05 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2013-12-03 14:22:05 -0500
commit38779737f641904829b8d07428ea7865309dc907 (patch)
treea18c72705524314228934c8db0a057601bac2f0a /www/js/menu.js
parentc2532af145df03f47aa83ccdad301feed163d584 (diff)
downloadhtml5ks-38779737f641904829b8d07428ea7865309dc907.tar.xz
html5ks-38779737f641904829b8d07428ea7865309dc907.zip
More refactoring.
Diffstat (limited to 'www/js/menu.js')
-rw-r--r--www/js/menu.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/www/js/menu.js b/www/js/menu.js
index 2715e26..eb878a5 100644
--- a/www/js/menu.js
+++ b/www/js/menu.js
@@ -2,10 +2,9 @@
"use strict";
html5ks.menu = {
mainMenu: function () {
+ html5ks._next = function () {};
this.context(false);
- html5ks.api.stop("music");
- html5ks.api.stop("sound");
- html5ks.api.stop("ambient");
+ html5ks.api.stop("all");
html5ks.api.window("hide");
html5ks.api.play("music", "music_menus");
html5ks.api.show("url", "ui/main/bg-main.png");
@@ -152,7 +151,6 @@
}, false);
document.getElementById("goto-main-menu").addEventListener("click", function () {
- html5ks.next = function () {};
html5ks.menu.mainMenu();
}, false);
},