diff options
author | Armen Kesablyan | 2012-02-07 16:55:34 -0800 |
---|---|---|
committer | Armen Kesablyan | 2012-02-07 16:55:34 -0800 |
commit | 10f0ad4c15f090b2d0d50d11e4c7aaf291e9eb0e (patch) | |
tree | 12b31910a3c7c7fa2ee0b26d8aaa611710e139a5 /js/mediators/drag-drop-mediator.js | |
parent | 7f8730c3add146f1ba107e6fc22d1f5a8348ed8b (diff) | |
parent | 668510892537eaaeb2e11520831d87b44b2489b7 (diff) | |
download | ninja-10f0ad4c15f090b2d0d50d11e4c7aaf291e9eb0e.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into text-tool
Conflicts:
_scss/compass_app_log.txt
css/ninja.css
Diffstat (limited to 'js/mediators/drag-drop-mediator.js')
-rw-r--r-- | js/mediators/drag-drop-mediator.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/js/mediators/drag-drop-mediator.js b/js/mediators/drag-drop-mediator.js index 07e4a50c..aacb228c 100644 --- a/js/mediators/drag-drop-mediator.js +++ b/js/mediators/drag-drop-mediator.js | |||
@@ -62,7 +62,7 @@ exports.DragDropMediator = Montage.create(Component, { | |||
62 | 62 | ||
63 | handleDropEvent: { | 63 | handleDropEvent: { |
64 | value: function(evt){ | 64 | value: function(evt){ |
65 | var xferString, component; | 65 | var xferString, component, file, files, idx, len; |
66 | 66 | ||
67 | this.baseX = evt.offsetX - this.application.ninja.stage.userContentLeft; | 67 | this.baseX = evt.offsetX - this.application.ninja.stage.userContentLeft; |
68 | this.baseY = evt.offsetY - this.application.ninja.stage.userContentTop; | 68 | this.baseY = evt.offsetY - this.application.ninja.stage.userContentTop; |
@@ -85,11 +85,8 @@ exports.DragDropMediator = Montage.create(Component, { | |||
85 | return; | 85 | return; |
86 | } | 86 | } |
87 | 87 | ||
88 | var file; | 88 | files = evt.dataTransfer.files; |
89 | const files = evt.dataTransfer.files; | 89 | len = files.length; |
90 | var idx; | ||
91 | const len = files.length; | ||
92 | |||
93 | 90 | ||
94 | // Loop over all dragged files... | 91 | // Loop over all dragged files... |
95 | for (idx = 0; idx < len; idx++) { | 92 | for (idx = 0; idx < len; idx++) { |