You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a javascript error when testing some animation code on an Android 4.0.3 tablet, which says:
Uncaught TypeError: Cannot call method 'contains' of undefined at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:3162
which points to the following line in ionic.requestAnimationFrame():
if (ele.classList.contains('button')) {
Line needs to be changed to the following, to avoid the error:
if (ele.classList && ele.classList.contains('button')) {
Also recommend making the same changes to the classList checks a few lines before and a few lines after the line mentioned to avoid running into the error when checking for class entries of "item" or "pane" as well.