From 3b55a65c4dfe9297b83a56d3fc2dcade6d96f5df Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Mon, 27 Aug 2012 09:20:31 -0700 Subject: [PATCH] renamed this var. #359 --- select2.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/select2.js b/select2.js index b0d09b83..d98bce9f 100755 --- a/select2.js +++ b/select2.js @@ -195,17 +195,17 @@ * * @param quietMillis number of milliseconds to wait before invoking fn * @param fn function to be debounced - * @param thisobj object to be used as this reference within fn + * @param ctx object to be used as this reference within fn * @return debounced version of fn */ - function debounce(quietMillis, fn, thisobj) { - thisobj = thisobj || undefined; + function debounce(quietMillis, fn, ctx) { + ctx = ctx || undefined; var timeout; return function () { var args = arguments; window.clearTimeout(timeout); timeout = window.setTimeout(function() { - fn.apply(thisobj, args); + fn.apply(ctx, args); }, quietMillis); }; }