Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing addClass on widget; adding DashSelectors to package.yml

  • Loading branch information...
commit 0ab3310eaf8445eb29d0bf3c4c11788063171437 1 parent 4f69dff
Aaron Newton authored
Showing with 5 additions and 2 deletions.
  1. +4 −2 Source/Base/ART.Widget.js
  2. +1 −0  package.yml
6 Source/Base/ART.Widget.js
View
@@ -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;
},
1  package.yml
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"
Please sign in to comment.
Something went wrong with that request. Please try again.