diff options
author | Valerio Virgillito | 2012-02-23 01:55:14 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-23 01:55:14 -0800 |
commit | 64a971f63333d74ca89690892a52948b3bd4283a (patch) | |
tree | 61bac34de22852efd2b9b8880f62210685b16297 /js/io/ui/save-as-dialog.reel/save-as-dialog.js | |
parent | aaa8d05cc3cfd94322d356e265b94b0abb9f6305 (diff) | |
parent | d264092596ba697cd04738566184270dc608be63 (diff) | |
download | ninja-64a971f63333d74ca89690892a52948b3bd4283a.tar.gz |
Merge branch 'FileIO' of github.com:joseeight/ninja-internal into file-io
Diffstat (limited to 'js/io/ui/save-as-dialog.reel/save-as-dialog.js')
-rw-r--r-- | js/io/ui/save-as-dialog.reel/save-as-dialog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/io/ui/save-as-dialog.reel/save-as-dialog.js b/js/io/ui/save-as-dialog.reel/save-as-dialog.js index 55a09fa8..0a322b99 100644 --- a/js/io/ui/save-as-dialog.reel/save-as-dialog.js +++ b/js/io/ui/save-as-dialog.reel/save-as-dialog.js | |||
@@ -117,8 +117,8 @@ var SaveAsDialog = exports.SaveAsDialog = Montage.create(Component, { | |||
117 | try{ | 117 | try{ |
118 | //validate file name and folder path | 118 | //validate file name and folder path |
119 | //check if file already exists | 119 | //check if file already exists |
120 | if(!!this.callback && !!this.callbackScope){//inform document-controller if save successful | 120 | if(!!this.callback){//inform document-controller if save successful |
121 | this.callback.call(this.callbackScope, {"filename":filename, "destination": newFileDirectory});//document-controller api | 121 | this.callback({"filename":filename, "destination": newFileDirectory});//document-controller api |
122 | }else{ | 122 | }else{ |
123 | //send save as event | 123 | //send save as event |
124 | var saveAsEvent = document.createEvent("Events"); | 124 | var saveAsEvent = document.createEvent("Events"); |