Skip to content

Commit

Permalink
Merge pull request #1805 from akvo/issue/1765-remove-zepto
Browse files Browse the repository at this point in the history
[#1765] test for classList.forEach before using
  • Loading branch information
KasperBrandt committed Sep 17, 2015
2 parents 908a5d2 + 963cb6f commit 3284816
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion akvo/rsr/static/scripts-src/myrsr-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ function setUnsavedChangesMessage() {
/* General Helper Functions */

function elHasClass(el, className) {
if (el.classList) {
if (el.classList && el.classList.forEach) {
var result = false;
el.classList.forEach( function(entry) {
if (entry.toString() === className.toString()) {
Expand Down
2 changes: 1 addition & 1 deletion akvo/rsr/static/scripts-src/myrsr-admin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ function setUnsavedChangesMessage() {
/* General Helper Functions */

function elHasClass(el, className) {
if (el.classList) {
if (el.classList && el.classList.forEach) {
var result = false;
el.classList.forEach( function(entry) {
if (entry.toString() === className.toString()) {
Expand Down

0 comments on commit 3284816

Please sign in to comment.