diff --git a/etemplate/js/et2_core_widget.js b/etemplate/js/et2_core_widget.js index 9d33fd92a0..faf80c60d7 100644 --- a/etemplate/js/et2_core_widget.js +++ b/etemplate/js/et2_core_widget.js @@ -579,6 +579,19 @@ var et2_widget = Class.extend({ } }, + /** + * Create a et2_widget from an XML node. + * + * First the type and attributes are read from the node. Then the readonly & modifications + * arrays are checked for changes specific to the loaded data. Then the appropriate + * constructor is called. After the constructor returns, the widget has a chance to + * further initialize itself from the XML node when the widget's loadFromXML() method + * is called with the node. + * + * @param _node XML node to read + * + * @return et2_widget + */ createElementFromNode: function(_node) { var attributes = {};