Page generated at 2016-08-19 09:38:26 +0000
component.update() Method
Initialize new components
Use case
If component contains another components or loads html which can have them - use this method to initialize those components after changing html.
- Use within components.
- Called automatically on document load.
- Should not be called outside of components.
Example
var $e = $('#my-div');
$.get(url, function(data){
$e.append(data);
component.update($e); // do not check whole document, only $e
})
component.update()
Lookup for tags with component=""
attribute, replace with component if exists.
component.update(DOMElement)
Same as component.update()
, but lookup is partial, only inside of DOMElement.