diff options
author | Jose Antonio Marquez Russo | 2012-02-10 11:12:25 -0800 |
---|---|---|
committer | Jose Antonio Marquez Russo | 2012-02-10 11:12:25 -0800 |
commit | 13b98b96ab36da5029204aa2a35d0d646d471274 (patch) | |
tree | 477ee2ae9ff0c81f269da4b34e03f2983f1edae1 /js/components/ui/FilePicker/file-input-field.reel/file-input-field.js | |
parent | fbe830fabe497d01f4f2eaddb867161a8187c101 (diff) | |
parent | 8c40940f030adb74f534c3c5ad8d845e41f09b30 (diff) | |
download | ninja-13b98b96ab36da5029204aa2a35d0d646d471274.tar.gz |
Merge pull request #6 from ananyasen/FileIO
Open file fixes and adding opening in code view.
Diffstat (limited to 'js/components/ui/FilePicker/file-input-field.reel/file-input-field.js')
-rwxr-xr-x | js/components/ui/FilePicker/file-input-field.reel/file-input-field.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/components/ui/FilePicker/file-input-field.reel/file-input-field.js b/js/components/ui/FilePicker/file-input-field.reel/file-input-field.js index 8710de63..235be8ad 100755 --- a/js/components/ui/FilePicker/file-input-field.reel/file-input-field.js +++ b/js/components/ui/FilePicker/file-input-field.reel/file-input-field.js | |||
@@ -70,8 +70,7 @@ var FileInputField = exports.FileInputField = Montage.create(Component, { | |||
70 | settings.inFileMode = true; | 70 | settings.inFileMode = true; |
71 | settings.pickerName = this.pickerName || "fileSelector"; | 71 | settings.pickerName = this.pickerName || "fileSelector"; |
72 | } | 72 | } |
73 | settings.callback = this.filePickerCallback; | 73 | settings.callback = this.filePickerCallback.bind(this); |
74 | settings.callbackScope = this; | ||
75 | openFilePicker.settings = settings; | 74 | openFilePicker.settings = settings; |
76 | this.eventManager.dispatchEvent(openFilePicker); | 75 | this.eventManager.dispatchEvent(openFilePicker); |
77 | } | 76 | } |