Browse Source

Update Sortable.js

Checking `typeof(this[fn])` is enough
pull/746/head
dev101 9 years ago
parent
commit
8e8dc72b1a
  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