Elgg  Version 2.3
ui.widgets.js
Go to the documentation of this file.
1 
8 require(['elgg', 'elgg/widgets'], function (elgg, widgets) {
9 
10  elgg.provide('elgg.ui.widgets');
11 
12  elgg.ui.widgets = {
13  _notice: function() {
14  elgg.deprecated_notice('Don\'t use elgg.ui.widgets directly. Use the AMD elgg/widgets module', '2.1');
15  },
16  init: function() {
17  elgg.ui.widgets._notice();
18  return widgets.init.apply(this, arguments);
19  },
20  add: function () {
21  elgg.ui.widgets._notice();
22  return widgets.add.apply(this, arguments);
23  },
24  move: function () {
25  elgg.ui.widgets._notice();
26  return widgets.move.apply(this, arguments);
27  },
28  remove: function () {
29  elgg.ui.widgets._notice();
30  return widgets.remove.apply(this, arguments);
31  },
32  collapseToggle: function() {
33  elgg.ui.widgets._notice();
34  return widgets.collapseToggle.apply(this, arguments);
35  },
36  setMinHeight: function() {
37  elgg.ui.widgets._notice();
38  return widgets.setMinHeight.apply(this, arguments);
39  }
40  };
41 
42  elgg.register_hook_handler('init', 'system', widgets.init);
43 });
elgg
Definition: install.js:23
elgg comments init
Initialize comment inline editing.
Definition: comments.js:122
elgg layout widgets elgg widgets
Definition: admin.css.php:1211
require(['elgg', 'elgg/widgets'], function(elgg, widgets){elgg.provide('elgg.ui.widgets');elgg.ui.widgets={_notice:function(){elgg.deprecated_notice('Don\'t use elgg.ui.widgets directly.Use the AMD elgg/widgets module', '2.1');}, init:function(){elgg.ui.widgets._notice();return widgets.init.apply(this, arguments);}, add:function(){elgg.ui.widgets._notice();return widgets.add.apply(this, arguments);}, move:function(){elgg.ui.widgets._notice();return widgets.move.apply(this, arguments);}, remove:function(){elgg.ui.widgets._notice();return widgets.remove.apply(this, arguments);}, collapseToggle:function(){elgg.ui.widgets._notice();return widgets.collapseToggle.apply(this, arguments);}, setMinHeight:function(){elgg.ui.widgets._notice();return widgets.setMinHeight.apply(this, arguments);}};elgg.register_hook_handler('init', 'system', widgets.init);})
Even thought this looks like an async require call, it in fact does not issue an async call to load e...