Permalink
Browse files

Fixing addClass on widget; adding DashSelectors to package.yml

  • Loading branch information...
1 parent 4f69dff commit 0ab3310eaf8445eb29d0bf3c4c11788063171437 @anutron committed Nov 18, 2010
Showing with 5 additions and 2 deletions.
  1. +4 −2 Source/Base/ART.Widget.js
  2. +1 −0 package.yml
@@ -123,8 +123,10 @@ var Widget = ART.Widget = new Class({
/* classNames */
addClass: function(className){
- this.parent(className);
- this.element.addClass(className);
+ className.split(' ').each(function(kls){
+ this.parent(kls);
+ this.element.addClass(kls);
+ }, this);
this.deferDraw();
return this;
},
View
@@ -20,6 +20,7 @@ sources:
- "Source/Utilities/Event.Latch.js"
- "Source/Utilities/Stacker.js"
- "Source/Utilities/Press.js"
+ - "Source/Utilities/DashSelectors.js"
- "Source/Element/Element.Data.js"
- "Source/Illustrations/ART.Glyphs.js"
- "Source/Widgets/ART.Box.js"

0 comments on commit 0ab3310

Please sign in to comment.