init.js
27 lines
| 845 B
| application/javascript
|
JavascriptLexer
Jonathan Frederic
|
r17198 | // Copyright (c) IPython Development Team. | ||
// Distributed under the terms of the Modified BSD License. | ||||
Jonathan Frederic
|
r14470 | |||
Jonathan Frederic
|
r14546 | define([ | ||
Jonathan Frederic
|
r17198 | "widgets/js/manager", | ||
Jonathan Frederic
|
r15427 | "widgets/js/widget_bool", | ||
"widgets/js/widget_button", | ||||
"widgets/js/widget_container", | ||||
"widgets/js/widget_float", | ||||
"widgets/js/widget_image", | ||||
"widgets/js/widget_int", | ||||
"widgets/js/widget_selection", | ||||
"widgets/js/widget_selectioncontainer", | ||||
"widgets/js/widget_string", | ||||
Jonathan Frederic
|
r17198 | ], function(WidgetManager) { | ||
// Register all of the loaded views with the widget manager. | ||||
for (var i = 1; i < arguments.length; i++) { | ||||
for (var target_name in arguments[i]) { | ||||
if (arguments[i].hasOwnProperty(target_name)) { | ||||
WidgetManager.register_widget_view(target_name, arguments[i][target_name]); | ||||
} | ||||
} | ||||
} | ||||
return WidgetManager; | ||||
}); | ||||