diff --git a/source/Ox/js/DOM.js b/source/Ox/js/DOM.js index 3e9325d9..dd1284a0 100644 --- a/source/Ox/js/DOM.js +++ b/source/Ox/js/DOM.js @@ -165,7 +165,7 @@ Ox.$ = Ox.element = function $(value) { ([selector]) -> <[h]> Children selector CSS selector @*/ - children: function children() { + children: function children(selector) { var children = Ox.unique(Ox.flatten(elements.map(function(element) { return Ox.slice(element.childNodes); }))); @@ -467,7 +467,7 @@ Ox.$ = Ox.element = function $(value) { ([selector]) -> <[h]> Ancestor elements selector CSS selector @*/ - parents: function parents() { + parents: function parents(selector) { var parents = []; Ox.reverse(elements).forEach(function(element) { var parent = element; @@ -642,7 +642,7 @@ Ox.$ = Ox.element = function $(value) { ([selector]) -> <[h]> Siblings selector CSS selector @*/ - siblings: function siblings() { + siblings: function siblings(selector) { var siblings = Ox.unique(elements.map(function(element) { return Ox.filter( element.parentNode.childNodes,