From 8e8dc72b1a6c390cbf2a7e224bc7247cbbf6df9c Mon Sep 17 00:00:00 2001 From: dev101 Date: Thu, 21 Jan 2016 13:51:19 +0300 Subject: [PATCH] Update Sortable.js Checking `typeof(this[fn])` is enough --- Sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sortable.js b/Sortable.js index 61c8e70..d715f6e 100644 --- a/Sortable.js +++ b/Sortable.js @@ -255,7 +255,7 @@ // Bind all private methods 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); } }