aboutsummaryrefslogtreecommitdiff
path: root/js/components/ui/tree-basic/treeItem.reel/treeItem.js
diff options
context:
space:
mode:
authorJose Antonio Marquez Russo2012-02-22 14:18:39 -0800
committerJose Antonio Marquez Russo2012-02-22 14:18:39 -0800
commite150cea29af96c4d57e3f6cd2ecda0a3c86f366d (patch)
treef3410214d1049514322127cf8256fee2ab7f420c /js/components/ui/tree-basic/treeItem.reel/treeItem.js
parent5da4627fe899c03e885d10a77a5e33bb15875504 (diff)
parentdbf0ca5637a3bca87c21c65ada47f8a4d794f78c (diff)
downloadninja-e150cea29af96c4d57e3f6cd2ecda0a3c86f366d.tar.gz
Merge pull request #16 from ananyasen/FileIO
FileIO branch pull request
Diffstat (limited to 'js/components/ui/tree-basic/treeItem.reel/treeItem.js')
-rwxr-xr-xjs/components/ui/tree-basic/treeItem.reel/treeItem.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/components/ui/tree-basic/treeItem.reel/treeItem.js b/js/components/ui/tree-basic/treeItem.reel/treeItem.js
index 755eab8c..4c71cb6b 100755
--- a/js/components/ui/tree-basic/treeItem.reel/treeItem.js
+++ b/js/components/ui/tree-basic/treeItem.reel/treeItem.js
@@ -225,6 +225,11 @@ exports.TreeItem = Montage.create(Component, {
225 openFolderEvent.initEvent("openFolder", false, false); 225 openFolderEvent.initEvent("openFolder", false, false);
226 openFolderEvent.folderUri = this.treeItemData.uri; 226 openFolderEvent.folderUri = this.treeItemData.uri;
227 this.element.dispatchEvent(openFolderEvent); 227 this.element.dispatchEvent(openFolderEvent);
228 }else{
229 var openFolderEvent = document.createEvent("Events");
230 openFolderEvent.initEvent("selectFile", false, false);
231 openFolderEvent.fileUri = this.treeItemData.uri;
232 this.element.dispatchEvent(openFolderEvent);
228 } 233 }
229 if(evt.bubbles){ 234 if(evt.bubbles){
230 evt.stopPropagation(); 235 evt.stopPropagation();