aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
authorhwc4872012-06-13 10:17:07 -0700
committerhwc4872012-06-13 10:17:07 -0700
commiteea0703ca3b7f066a9d685ce09905d4860fa082d (patch)
treef0000ae8469a9e551f629c744251e6a688bbec4c /js/ninja.reel/ninja.js
parent1fe66f1a89ac949dee44ae881556901a8bf98bba (diff)
parent5a7774f6769a7a682e21bafe0e57007668f16153 (diff)
downloadninja-eea0703ca3b7f066a9d685ce09905d4860fa082d.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Conflicts: js/io/system/ninjalibrary.json
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index b57aecd2..2d43af7a 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -169,6 +169,10 @@ exports.Ninja = Montage.create(Component, {
169 this.setupGlobalHelpers(); 169 this.setupGlobalHelpers();
170 170
171 window.addEventListener("resize", this, false); 171 window.addEventListener("resize", this, false);
172 //Prompting the user to make sure data was saved before closing Ninja
173 window.onbeforeunload = function () {
174 return 'Are you sure you want to close Ninja? Any unsaved data will be lost.';
175 };
172 176
173 this.eventManager.addEventListener("selectTool", this, false); 177 this.eventManager.addEventListener("selectTool", this, false);
174 this.eventManager.addEventListener("selectSubTool", this, false); 178 this.eventManager.addEventListener("selectSubTool", this, false);