Browse Source

Merge pull request #2 from dev101/dev101-patch-2

Calling this[fn].bind requires extra check - cont.
pull/746/head
dev101 9 years ago
parent
commit
1f8b001bcb
  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) === '_' && typeof(this[fn].bind) === 'function') { if (fn.charAt(0) === '_' && typeof(this[fn]) === 'function') {
this[fn] = this[fn].bind(this); this[fn] = this[fn].bind(this);
} }
} }

Loading…
Cancel
Save