Skip to content

Commit

Permalink
_PaletteMixin: dyeClass can't be string, refs #4
Browse files Browse the repository at this point in the history
  • Loading branch information
wkeese committed May 1, 2013
1 parent 358f147 commit a3b94c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _PaletteMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ define([
// tags:
// extension

// Remove string support for 2.0
var dyeClassObj = typeof this.dyeClass == "string" ? lang.getObject(this.dyeClass) : this.dyeClass;
return new dyeClassObj(value);
return new this.dyeClass(value);
},

_preparePalette: function(choices, titles){
Expand Down

0 comments on commit a3b94c8

Please sign in to comment.