Skip to content

Commit

Permalink
return the value for animated attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfedr committed Jan 30, 2012
1 parent f45949e commit 7068ed3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Slick/Slick.Finder.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,9 @@ for (var p in pseudos) local['pseudo:' + p] = pseudos[p];
var attributeGetters = local.attributeGetters = {

'class': function(){
return this.getAttribute('class') || typeOf(this.className) == 'string' ? this.className : null;
var className = this.className;
if (className && className.baseVal !== undefined) className = className.baseVal;
return className || this.getAttribute('class');
},

'for': function(){
Expand Down

0 comments on commit 7068ed3

Please sign in to comment.