equal
deleted
inserted
replaced
|
1 |
1 cw = {}; |
2 cw = {}; |
2 |
3 |
3 jQuery.extend(cw, { |
4 jQuery.extend(cw, { |
4 log: function () { |
5 log: function () { |
5 var args = []; |
6 var args = []; |
366 } |
367 } |
367 } |
368 } |
368 } |
369 } |
369 return node; |
370 return node; |
370 } |
371 } |
|
372 |
|
373 // XXX avoid crashes / backward compat |
|
374 CubicWeb = { |
|
375 require: cw.utils.deprecatedFunction( |
|
376 '[3.9] CubicWeb.require() is not used anymore', |
|
377 function(module) {}), |
|
378 provide: cw.utils.deprecatedFunction( |
|
379 '[3.9] CubicWeb.provide() is not used anymore', |
|
380 function(module) {}) |
|
381 }; |
|
382 |
|
383 jQuery(document).ready(function() { |
|
384 jQuery(CubicWeb).trigger('server-response', [false, document]); |
|
385 jQuery(cw).trigger('server-response', [false, document]); |
|
386 }); |
|
387 |
|
388 // XXX as of 2010-04-07, no known cube uses this |
|
389 jQuery(CubicWeb).bind('ajax-loaded', function() { |
|
390 log('[3.7] "ajax-loaded" event is deprecated, use "server-response" instead'); |
|
391 jQuery(cw).trigger('server-response', [false, document]); |
|
392 }); |