From eef660d2bbbeb5288a62b005a3fc842b03e53f56 Mon Sep 17 00:00:00 2001 From: RubaXa Date: Sat, 8 Nov 2014 22:18:40 +0300 Subject: [PATCH] * fixed 'sort' option --- Sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sortable.js b/Sortable.js index 4c47563..a18f95c 100644 --- a/Sortable.js +++ b/Sortable.js @@ -91,7 +91,7 @@ // Set default options for (var name in defaults) { - options[name] = options[name] || defaults[name]; + !(name in options) && (options[name] = defaults[name]); }