From 648ee61ae84216d0236e0dbc211addc13b2cfa3a Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:52:06 -0700 Subject: Expand tabs --- js/components/ui/color-chip.reel/color-chip.html | 2 +- js/components/ui/color-chip.reel/color-chip.js | 6 +++--- js/components/ui/file-input.reel/file-input.js | 4 ++-- js/components/ui/icon-list-basic/icon.reel/icon.js | 22 +++++++++++----------- .../ui/icon-list-basic/iconsList.reel/iconsList.js | 18 +++++++++--------- .../ui/property-control.reel/property-control.js | 10 +++++----- js/components/ui/tree-basic/tree.reel/tree.js | 18 +++++++++--------- .../ui/tree-basic/treeItem.reel/treeItem.js | 16 ++++++++-------- 8 files changed, 48 insertions(+), 48 deletions(-) (limited to 'js/components/ui') diff --git a/js/components/ui/color-chip.reel/color-chip.html b/js/components/ui/color-chip.reel/color-chip.html index 4cc7bb29..482f999c 100755 --- a/js/components/ui/color-chip.reel/color-chip.html +++ b/js/components/ui/color-chip.reel/color-chip.html @@ -46,7 +46,7 @@ POSSIBILITY OF SUCH DAMAGE. - +
diff --git a/js/components/ui/color-chip.reel/color-chip.js b/js/components/ui/color-chip.reel/color-chip.js index 1c1c6054..2353d2a5 100755 --- a/js/components/ui/color-chip.reel/color-chip.js +++ b/js/components/ui/color-chip.reel/color-chip.js @@ -107,9 +107,9 @@ var ColorChip = exports.ColorChip = Montage.create(Component, { var mode = "rgb", r = 0, g = 0, b = 0, a = 1, css = "rgb(0,0,0)"; if(this.color && this.color.color) { - var g = this.color.color; - g.wasSetByCode = true; - this.chipBtn.color(this.color.mode, g); + var g = this.color.color; + g.wasSetByCode = true; + this.chipBtn.color(this.color.mode, g); } else if (this.color) { var colorObj = this.application.ninja.colorController.getColorObjFromCss(this.color.css); mode = colorObj.mode; diff --git a/js/components/ui/file-input.reel/file-input.js b/js/components/ui/file-input.reel/file-input.js index e8ea8ba9..66a52b22 100755 --- a/js/components/ui/file-input.reel/file-input.js +++ b/js/components/ui/file-input.reel/file-input.js @@ -71,7 +71,7 @@ var FileInput = exports.FileInput = Montage.create(Component, { handleChange: { value:function(event) - { + { if(event.currentTarget.type === "file") { this.filePath = this.inputField.value; @@ -86,7 +86,7 @@ var FileInput = exports.FileInput = Montage.create(Component, { e.type = "change"; e.filePath = this.filePath; this.dispatchEvent(e); - } + } }, prepareForDraw: { diff --git a/js/components/ui/icon-list-basic/icon.reel/icon.js b/js/components/ui/icon-list-basic/icon.reel/icon.js index 11cf3b12..d0954324 100755 --- a/js/components/ui/icon-list-basic/icon.reel/icon.js +++ b/js/components/ui/icon-list-basic/icon.reel/icon.js @@ -70,14 +70,14 @@ exports.Icon = Montage.create(Component, { }, willDraw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { - } + } }, draw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { if(this.icondata.type === "directory"){ this.iconImg.src = this.imgStore.img_root + this.imgStore.directory; }else{ @@ -91,11 +91,11 @@ exports.Icon = Montage.create(Component, { } this.iconImg.src = fileImg; } - } + } }, didDraw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { var that = this; var icon = this.iconImg; @@ -131,7 +131,7 @@ exports.Icon = Montage.create(Component, { selectedItemEvent.uri = this.icondata.uri; this.element.dispatchEvent(selectedItemEvent); } - } + } }, /** @@ -195,12 +195,12 @@ exports.Icon = Montage.create(Component, { formatTimestamp:{ writable:false, enumerable: false, - value: function(timestamp) { + value: function(timestamp) { var aDate = new Date(); timestamp = timestamp - (aDate.getTimezoneOffset()*60*1000);//convert from GMT to local timestamp aDate = new Date(timestamp); return aDate.toLocaleString(); - } + } }, imgStore:{ diff --git a/js/components/ui/icon-list-basic/iconsList.reel/iconsList.js b/js/components/ui/icon-list-basic/iconsList.reel/iconsList.js index 8b40f102..c2e2d46f 100755 --- a/js/components/ui/icon-list-basic/iconsList.reel/iconsList.js +++ b/js/components/ui/icon-list-basic/iconsList.reel/iconsList.js @@ -55,22 +55,22 @@ var IconsList = exports.IconsList = Montage.create(Component, { }, willDraw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { - } + } }, draw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { - } + } }, didDraw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { - } + } } }); diff --git a/js/components/ui/property-control.reel/property-control.js b/js/components/ui/property-control.reel/property-control.js index 6e0a3916..834702fd 100755 --- a/js/components/ui/property-control.reel/property-control.js +++ b/js/components/ui/property-control.reel/property-control.js @@ -169,15 +169,15 @@ var PropertyControl = exports.PropertyControl = Montage.create(Component, { }, handleEvent: - { - value:function(event) - { + { + value:function(event) + { if(event.wasSetByCode) { return; } this._dispatchPropEvent(event); - } - }, + } + }, _dispatchPropEvent: { value: function(event) { diff --git a/js/components/ui/tree-basic/tree.reel/tree.js b/js/components/ui/tree-basic/tree.reel/tree.js index 0b161aa6..14472475 100755 --- a/js/components/ui/tree-basic/tree.reel/tree.js +++ b/js/components/ui/tree-basic/tree.reel/tree.js @@ -58,22 +58,22 @@ exports.Tree = Montage.create(Component, { }, willDraw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { - } + } }, draw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { - } + } }, didDraw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { - } + } } }); 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, { value:null }, willDraw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { var that = this; this.itemName.innerHTML = this.treeItemData.name; @@ -108,14 +108,14 @@ exports.TreeItem = Montage.create(Component, { } }, draw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { } }, didDraw: { - enumerable: false, - value: function() { + enumerable: false, + value: function() { var that = this; this.element.identifier = "treeItem"; this.treeArrow.identifier = "treeArrow"; @@ -333,12 +333,12 @@ exports.TreeItem = Montage.create(Component, { formatTimestamp:{ writable:false, enumerable: false, - value: function(timestamp) { + value: function(timestamp) { var aDate = new Date(); timestamp = timestamp - (aDate.getTimezoneOffset()*60*1000);//convert from GMT to local timestamp aDate = new Date(timestamp); return aDate.toLocaleString(); - } + } } }); -- cgit v1.2.3