1
0
mirror of synced 2024-11-23 05:26:10 +03:00

Merge pull request #1923 from riatiger/master

fix for Uncaught TypeError: Object #<Object> has no method 'abort'
This commit is contained in:
Igor Vaynberg 2013-11-29 22:12:51 -08:00
commit c0f37eafcb

View File

@ -431,7 +431,7 @@ the specific language governing permissions and limitations under the Apache Lic
data = data ? data.call(self, query.term, query.page, query.context) : null; 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; url = (typeof url === 'function') ? url.call(self, query.term, query.page, query.context) : url;
if (handler) { handler.abort(); } if (handler && typeof handler.abort === "function") { handler.abort(); }
if (options.params) { if (options.params) {
if ($.isFunction(options.params)) { if ($.isFunction(options.params)) {