diff options
| author | Misko Hevery | 2011-02-12 10:12:10 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-02-16 00:49:16 -0500 |
| commit | 496e6bf9016d33a7cf2f4730d06a8655f01ca5cb (patch) | |
| tree | 068f86776aa08a8dce1dde05ef1e079f739073fc /docs/angular.element.ngdoc | |
| parent | 23b255a8b7481ff5c06004b3558c07f981c42276 (diff) | |
| download | angular.js-496e6bf9016d33a7cf2f4730d06a8655f01ca5cb.tar.bz2 | |
refactored quickClone to cloneNode and exposed it on jQuery
Diffstat (limited to 'docs/angular.element.ngdoc')
| -rw-r--r-- | docs/angular.element.ngdoc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/angular.element.ngdoc b/docs/angular.element.ngdoc index 90025799..83680d1f 100644 --- a/docs/angular.element.ngdoc +++ b/docs/angular.element.ngdoc @@ -40,9 +40,14 @@ raw DOM references. - [text()](http://api.jquery.com/text/) - [trigger()](http://api.jquery.com/trigger/) -## Additionally these methods are available in both jQuery and jQuery lite version. +## Additionally these methods extend the jQuery and are available in both jQuery and jQuery lite +version: - `scope()` - retrieves the current angular scope of the element. +- `cloneNode()` - Clones the current node, ensuring identical structure. This is important since + the `clone()` method implemented by jQuery under some circumstances changes the DOM + structure, which then prevents proper application of compiled template to the cloned node. + __Always use `cloneNode()` when cloning previously compiled templates.__ @param {string|DOMElement} element HTML string or DOMElement to be wrapped into jQuery. @returns {Object} jQuery object. |
