aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Materials/materials-popup.reel/materials-popup.js
diff options
context:
space:
mode:
authorEric Guzman2012-04-02 15:36:08 -0700
committerEric Guzman2012-04-02 15:36:08 -0700
commit0241bf331b7e06e206a54be441edf2f4c7261f63 (patch)
treeb7e2f9cad73eed4fc616cf1841cd0be02bd955d4 /js/panels/Materials/materials-popup.reel/materials-popup.js
parentdde5b5054f93db493e5d4d502e677f5781334b08 (diff)
parentc6de22bf42be90b403491b5f87b1818d9020310c (diff)
downloadninja-0241bf331b7e06e206a54be441edf2f4c7261f63.tar.gz
Merge branch 'refs/heads/master' into CSSPanelUpdates
Diffstat (limited to 'js/panels/Materials/materials-popup.reel/materials-popup.js')
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.js b/js/panels/Materials/materials-popup.reel/materials-popup.js
index c57bb2d7..b44761bc 100755
--- a/js/panels/Materials/materials-popup.reel/materials-popup.js
+++ b/js/panels/Materials/materials-popup.reel/materials-popup.js
@@ -5,9 +5,8 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
5</copyright> */ 5</copyright> */
6 6
7var Montage = require("montage/core/core").Montage, 7var Montage = require("montage/core/core").Montage,
8 Component = require("montage/ui/component").Component; 8 Component = require("montage/ui/component").Component,
9var Button = require("js/components/button.reel").Button; 9 MaterialsModel = require("js/models/materials-model").MaterialsModel;
10var MaterialsModel = require("js/models/materials-model").MaterialsModel;
11 10
12//////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////
13//Exporting as MaterialsPopup 12//Exporting as MaterialsPopup
@@ -215,7 +214,11 @@ exports.MaterialsPopup = Montage.create(Component, {
215 enumerable: true, 214 enumerable: true,
216 value: function(materialID) 215 value: function(materialID)
217 { 216 {
218 this._materialName = materialID; 217 // Note that setting Array.length = 0 will empty arrays,
218 // which is fine if you use getMaterialData to get a new array, but not for the
219 // dummyData arrays.
220 this._materialsData.length = 0;
221 this._materialName = materialID;
219 if( 222 if(
220 (materialID === "UberMaterial") || 223 (materialID === "UberMaterial") ||
221 (materialID === "FlatMaterial") || 224 (materialID === "FlatMaterial") ||