[js] remove leftover dead code in loadxhtml
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 14 Feb 2014 14:39:55 +0100
changeset 9550 0188e957ce84
parent 9549 a1f94c2d2a39
child 9551 cbc46f94081d
[js] remove leftover dead code in loadxhtml form.callback support was removed in changeset 68cde7431c2c, but some signs of it remained.
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Tue Mar 04 18:28:46 2014 +0100
+++ b/web/data/cubicweb.ajax.js	Fri Feb 14 14:39:55 2014 +0100
@@ -338,7 +338,6 @@
     } else if (this.size() < 1) {
         cw.log('loadxhtml called without an element');
     }
-    var callback = null;
     var node = this.get(0); // only consider the first element
     if (cursor) {
         setProgressCursor();
@@ -362,9 +361,6 @@
             jQuery(node).append(domnode);
         }
         _postAjaxLoad(node);
-        while (jQuery.isFunction(callback)) {
-            callback = callback.apply(this, [domnode]);
-        }
     });
     d.addErrback(remoteCallFailed);
     if (cursor) {