Skip to content

Commit

Permalink
The element on first run might not have a class attribute set, this f…
Browse files Browse the repository at this point in the history
…ix passes in an empty string if that's the case
  • Loading branch information
kumailht committed Nov 16, 2013
1 parent d7b3e8a commit 3f4643a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion responsive-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ var ResponsiveElements = {
return breakpointClasses;
},
cleanUpBreakpoints: function(_el) {
var classesToCleanup = this.parseBreakpointClasses(_el.attr('class'));
var classesToCleanup = this.parseBreakpointClasses(_el.attr('class') || '');
_el.removeClass(classesToCleanup.join(' '));
},
events: function() {
Expand Down

0 comments on commit 3f4643a

Please sign in to comment.