Skip to content

Commit c9c8218

Browse files
committed
Fixed bug with classlist being null
Issue was occuring where the el.classList.add function was undefined.
1 parent a293a23 commit c9c8218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: release/js/ionic-angular.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jqLite.prototype.addClass = function(cssClasses) {
238238
el = this[x];
239239
if (el.setAttribute) {
240240

241-
if (cssClasses.indexOf(' ') < 0 && el.classList.add) {
241+
if (cssClasses.indexOf(' ') < 0 && el.classList && el.classList.add) {
242242
el.classList.add(cssClasses);
243243
} else {
244244
existingClasses = (' ' + (el.getAttribute('class') || '') + ' ')
@@ -13335,4 +13335,4 @@ IonicModule
1333513335
};
1333613336
});
1333713337

13338-
})();
13338+
})();

0 commit comments

Comments
 (0)