From 5e4ac3492b5da71d118d1e7f713b9dc3315e3fc7 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 22 Sep 2014 14:14:13 +0200 Subject: [PATCH] missing args --- source/Ox/js/DOM.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,