aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 8a507212..c4a10a0b 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -72,7 +72,7 @@ function JQLite(element) {
}
}
-function JQLiteCloneNode(element) {
+function JQLiteClone(element) {
return element.cloneNode(true);
}
@@ -370,12 +370,15 @@ forEach({
return element.parentNode || null;
},
+ next: function(element) {
+ return element.nextSibling;
+ },
+
find: function(element, selector) {
return element.getElementsByTagName(selector);
},
- clone: JQLiteCloneNode,
- cloneNode: JQLiteCloneNode
+ clone: JQLiteClone
}, function(fn, name){
/**
* chaining functions