From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/models/color-model.js | 4 ++-- js/models/materials-model.js | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'js/models') diff --git a/js/models/color-model.js b/js/models/color-model.js index a8ceb981..1fb2ba9c 100755 --- a/js/models/color-model.js +++ b/js/models/color-model.js @@ -154,7 +154,7 @@ exports.ColorModel = Montage.create(Component, { this._alpha = value; // if (this.rgb || this.hsl) { - this._dispatchChangeEvent('alpha', value); + this._dispatchChangeEvent('alpha', value); } } }, @@ -445,7 +445,7 @@ exports.ColorModel = Montage.create(Component, { } if (this.hex) colorEvent.hex = this.hex; - //Standard values that apply to any event + //Standard values that apply to any event colorEvent.value = value; colorEvent.mode = mode; if (value && value.wasSetByCode) { diff --git a/js/models/materials-model.js b/js/models/materials-model.js index 1fd52721..b8500234 100755 --- a/js/models/materials-model.js +++ b/js/models/materials-model.js @@ -110,7 +110,7 @@ exports.MaterialsModel = Montage.create(Component, { return this._materials; } }, - + addMaterial: { value: function (material) { this._materials.push(material); @@ -152,8 +152,8 @@ exports.MaterialsModel = Montage.create(Component, { } } }, - - getMaterialByShader: + + getMaterialByShader: { value: function( shaderName ) { @@ -161,7 +161,7 @@ exports.MaterialsModel = Montage.create(Component, { if (index >= 0) return this._materials[index]; } - }, + }, getIndexOfMaterialByShader: { value: function (shaderName) { @@ -220,13 +220,13 @@ exports.MaterialsModel = Montage.create(Component, { matArray.push( matObj ); } - var jObj = + var jObj = { 'materialLibrary': 1.0, 'materials': matArray }; - // prepend an identifiable string to aid parsing when the + // prepend an identifiable string to aid parsing when the // material model is loaded. var jStr = "materialLibrary;" + JSON.stringify( jObj ); @@ -285,7 +285,7 @@ exports.MaterialsModel = Montage.create(Component, { // make sure we have some materials to import before doing anything var matArray = jObj.materials; if (!matArray) return; - + // we replace allmaterials, so remove anything // that is currently there. this.clearAllMaterials(); -- cgit v1.2.3