Skip to content

Commit

Permalink
fix break caused by 24349: Use Element instead of element for IE comp…
Browse files Browse the repository at this point in the history
…atibility.

git-svn-id: http://is-svn/svn/uieng/frameworks/sproutcore_1b/trunk@24355 280ce282-5f28-0410-b095-e054cb237d46
  • Loading branch information
hakim committed Jun 7, 2008
1 parent 9b42c5d commit fc72ba6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Core.js
Expand Up @@ -365,10 +365,11 @@ Object.extend(Object,{
// treat it like a bool setting. Simplifies the common case where you need
// to make a class name match a bool.
Element.setClassName = function(element,className,flag) {
var el = SC.isIE() ? Element : element;
if (flag) {
Element.addClassName(element,className);
el.addClassName(element,className);
} else {
Element.removeClassName(element,className) ;
el.removeClassName(element,className) ;
}
} ;

Expand Down

0 comments on commit fc72ba6

Please sign in to comment.