浏览代码

fixes #1387, better handling of ajax handler var

Igor Vaynberg 12 年之前
父节点
当前提交
4917429c7a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -416,7 +416,7 @@ the specific language governing permissions and limitations under the Apache Lic
                 data = data ? data.call(self, query.term, query.page, query.context) : null;
                 url = (typeof url === 'function') ? url.call(self, query.term, query.page, query.context) : url;
 
-                if( null !== handler) { handler.abort(); }
+                if (handler) { handler.abort(); }
 
                 if (options.params) {
                     if ($.isFunction(options.params)) {