missing args

This commit is contained in:
rolux 2014-09-22 14:14:13 +02:00
parent 66a4fcb9f9
commit 5e4ac3492b

View file

@ -165,7 +165,7 @@ Ox.$ = Ox.element = function $(value) {
([selector]) -> <[h]> Children
selector <s|'*'> 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 <s|'*'> 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 <s|'*'> CSS selector
@*/
siblings: function siblings() {
siblings: function siblings(selector) {
var siblings = Ox.unique(elements.map(function(element) {
return Ox.filter(
element.parentNode.childNodes,