Skip to content

Commit 3b55a65

Browse files
committed
renamed this var. select2#359
1 parent de867bb commit 3b55a65

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

select2.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,17 @@
195195
*
196196
* @param quietMillis number of milliseconds to wait before invoking fn
197197
* @param fn function to be debounced
198-
* @param thisobj object to be used as this reference within fn
198+
* @param ctx object to be used as this reference within fn
199199
* @return debounced version of fn
200200
*/
201-
function debounce(quietMillis, fn, thisobj) {
202-
thisobj = thisobj || undefined;
201+
function debounce(quietMillis, fn, ctx) {
202+
ctx = ctx || undefined;
203203
var timeout;
204204
return function () {
205205
var args = arguments;
206206
window.clearTimeout(timeout);
207207
timeout = window.setTimeout(function() {
208-
fn.apply(thisobj, args);
208+
fn.apply(ctx, args);
209209
}, quietMillis);
210210
};
211211
}

0 commit comments

Comments
 (0)