From ad0ee69be3512325ede94738f23597086a141a3e Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Fri, 10 Feb 2012 01:55:30 -0800 Subject: file open and file new integrated again Signed-off-by: Ananya Sen --- js/components/ui/FilePicker/file-input-field.reel/file-input-field.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'js/components/ui/FilePicker/file-input-field.reel') 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, { settings.inFileMode = true; settings.pickerName = this.pickerName || "fileSelector"; } - settings.callback = this.filePickerCallback; - settings.callbackScope = this; + settings.callback = this.filePickerCallback.bind(this); openFilePicker.settings = settings; this.eventManager.dispatchEvent(openFilePicker); } -- cgit v1.2.3