From 2ed342a9182f040863f9734dc68910080387c281 Mon Sep 17 00:00:00 2001 From: Piotr Antosik Date: Thu, 24 Jul 2014 23:15:46 +0200 Subject: [PATCH] fix undefined variable in strict mode --- select2.sortable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/select2.sortable.js b/select2.sortable.js index 2bb246a..468a999 100644 --- a/select2.sortable.js +++ b/select2.sortable.js @@ -8,6 +8,8 @@ */ (function($){ + 'use strict'; + $.fn.extend({ select2SortableOrder: function(){ var $this = this.filter('[multiple]'); @@ -44,7 +46,7 @@ return $this; }, select2Sortable: function(){ - var args = Array.prototype.slice.call(arguments, 0); + var args = Array.prototype.slice.call(arguments, 0), $this = this.filter('[multiple]'), validMethods = ['destroy'];