Skip to content

Commit 4917429

Browse files
committed
fixes select2#1387, better handling of ajax handler var
1 parent 111cf37 commit 4917429

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ the specific language governing permissions and limitations under the Apache Lic
416416
data = data ? data.call(self, query.term, query.page, query.context) : null;
417417
url = (typeof url === 'function') ? url.call(self, query.term, query.page, query.context) : url;
418418

419-
if( null !== handler) { handler.abort(); }
419+
if (handler) { handler.abort(); }
420420

421421
if (options.params) {
422422
if ($.isFunction(options.params)) {

0 commit comments

Comments
 (0)