Skip to content

Commit

Permalink
[#1765] test for classList.forEach before using
Browse files Browse the repository at this point in the history
  • Loading branch information
gabemart committed Sep 16, 2015
1 parent f4ff505 commit 963cb6f
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 963cb6f

Please sign in to comment.