diff options
author | Kris Kowal | 2012-07-06 11:52:06 -0700 |
---|---|---|
committer | Kris Kowal | 2012-07-06 15:01:48 -0700 |
commit | 648ee61ae84216d0236e0dbc211addc13b2cfa3a (patch) | |
tree | 8f0f55557bd0c47a84e49c1977c950645d284607 /js/components/ui/tree-basic/treeItem.reel/treeItem.js | |
parent | aedd14b18695d031f695d27dfbd94df5614495bb (diff) | |
download | ninja-648ee61ae84216d0236e0dbc211addc13b2cfa3a.tar.gz |
Expand tabs
Diffstat (limited to 'js/components/ui/tree-basic/treeItem.reel/treeItem.js')
-rwxr-xr-x | js/components/ui/tree-basic/treeItem.reel/treeItem.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/components/ui/tree-basic/treeItem.reel/treeItem.js b/js/components/ui/tree-basic/treeItem.reel/treeItem.js index 1677d514..ffed488e 100755 --- a/js/components/ui/tree-basic/treeItem.reel/treeItem.js +++ b/js/components/ui/tree-basic/treeItem.reel/treeItem.js | |||
@@ -76,8 +76,8 @@ exports.TreeItem = Montage.create(Component, { | |||
76 | value:null | 76 | value:null |
77 | }, | 77 | }, |
78 | willDraw: { | 78 | willDraw: { |
79 | enumerable: false, | 79 | enumerable: false, |
80 | value: function() { | 80 | value: function() { |
81 | var that = this; | 81 | var that = this; |
82 | this.itemName.innerHTML = this.treeItemData.name; | 82 | this.itemName.innerHTML = this.treeItemData.name; |
83 | 83 | ||
@@ -108,14 +108,14 @@ exports.TreeItem = Montage.create(Component, { | |||
108 | } | 108 | } |
109 | }, | 109 | }, |
110 | draw: { | 110 | draw: { |
111 | enumerable: false, | 111 | enumerable: false, |
112 | value: function() { | 112 | value: function() { |
113 | 113 | ||
114 | } | 114 | } |
115 | }, | 115 | }, |
116 | didDraw: { | 116 | didDraw: { |
117 | enumerable: false, | 117 | enumerable: false, |
118 | value: function() { | 118 | value: function() { |
119 | var that = this; | 119 | var that = this; |
120 | this.element.identifier = "treeItem"; | 120 | this.element.identifier = "treeItem"; |
121 | this.treeArrow.identifier = "treeArrow"; | 121 | this.treeArrow.identifier = "treeArrow"; |
@@ -333,12 +333,12 @@ exports.TreeItem = Montage.create(Component, { | |||
333 | formatTimestamp:{ | 333 | formatTimestamp:{ |
334 | writable:false, | 334 | writable:false, |
335 | enumerable: false, | 335 | enumerable: false, |
336 | value: function(timestamp) { | 336 | value: function(timestamp) { |
337 | var aDate = new Date(); | 337 | var aDate = new Date(); |
338 | timestamp = timestamp - (aDate.getTimezoneOffset()*60*1000);//convert from GMT to local timestamp | 338 | timestamp = timestamp - (aDate.getTimezoneOffset()*60*1000);//convert from GMT to local timestamp |
339 | aDate = new Date(timestamp); | 339 | aDate = new Date(timestamp); |
340 | return aDate.toLocaleString(); | 340 | return aDate.toLocaleString(); |
341 | } | 341 | } |
342 | } | 342 | } |
343 | 343 | ||
344 | }); | 344 | }); |