Browse Source

Merge pull request #746 from dev101/dev

Calling this[fn].bind requires extra check
pull/754/head
Lebedev Konstantin 9 years ago
parent
commit
c52a82b4a1
  1. 2
      Sortable.js

2
Sortable.js

@ -255,7 +255,7 @@
// Bind all private methods // Bind all private methods
for (var fn in this) { for (var fn in this) {
if (fn.charAt(0) === '_') { if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {
this[fn] = this[fn].bind(this); this[fn] = this[fn].bind(this);
} }
} }

Loading…
Cancel
Save