[js/ajax] use proper operator stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 20 Oct 2010 10:35:52 +0200
branchstable
changeset 6556 64b39aa0b047
parent 6552 256725d4e3ec
child 6560 48ba5069e051
[js/ajax] use proper operator
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Tue Oct 19 14:07:52 2010 +0200
+++ b/web/data/cubicweb.ajax.js	Wed Oct 20 10:35:52 2010 +0200
@@ -36,7 +36,7 @@
     },
 
     addCallback: function(callback) {
-        if ((this._req.readyState == 4) & this._result) {
+        if ((this._req.readyState == 4) && this._result) {
             var args = [this._result, this._req];
             jQuery.merge(args, cw.utils.sliceList(arguments, 1));
             callback.apply(null, args);