diff options
| author | Misko Hevery | 2011-12-14 09:28:35 +0100 |
|---|---|---|
| committer | Misko Hevery | 2012-01-25 11:46:35 -0800 |
| commit | 97dae0d0a0226ee527771578bfad1342d51bf4dd (patch) | |
| tree | ea99b8a160a88441c6e88d6c2ad093ab1a347820 /src/jqLite.js | |
| parent | 84823b2eff21060c0883f6b4da5573380381c1a2 (diff) | |
| download | angular.js-97dae0d0a0226ee527771578bfad1342d51bf4dd.tar.bz2 | |
feat(jqLite): add contents()
Diffstat (limited to 'src/jqLite.js')
| -rw-r--r-- | src/jqLite.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jqLite.js b/src/jqLite.js index e7412904..9e16f8ec 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -35,6 +35,7 @@ * - [bind()](http://api.jquery.com/bind/) * - [children()](http://api.jquery.com/children/) * - [clone()](http://api.jquery.com/clone/) + * - [contents()](http://api.jquery.com/contents/) * - [css()](http://api.jquery.com/css/) * - [data()](http://api.jquery.com/data/) * - [eq()](http://api.jquery.com/eq/) @@ -556,6 +557,10 @@ forEach({ return children; }, + contents: function(element) { + return element.childNodes; + }, + append: function(element, node) { forEach(new JQLite(node), function(child){ if (element.nodeType === 1) |
