Skip to content

Commit

Permalink
Merge pull request #3958 from maverix/master
Browse files Browse the repository at this point in the history
Fixed bug with classlist being null
  • Loading branch information
mlynch committed Dec 6, 2015
2 parents c951e1f + c9c8218 commit 2f1f478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/js/ionic-angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ jqLite.prototype.addClass = function(cssClasses) {
el = this[x];
if (el.setAttribute) {

if (cssClasses.indexOf(' ') < 0 && el.classList.add) {
if (cssClasses.indexOf(' ') < 0 && el.classList && el.classList.add) {
el.classList.add(cssClasses);
} else {
existingClasses = (' ' + (el.getAttribute('class') || '') + ' ')
Expand Down Expand Up @@ -13532,4 +13532,4 @@ IonicModule
};
});

})();
})();

0 comments on commit 2f1f478

Please sign in to comment.