missing args
This commit is contained in:
parent
66a4fcb9f9
commit
5e4ac3492b
1 changed files with 3 additions and 3 deletions
|
@ -165,7 +165,7 @@ Ox.$ = Ox.element = function $(value) {
|
||||||
([selector]) -> <[h]> Children
|
([selector]) -> <[h]> Children
|
||||||
selector <s|'*'> CSS selector
|
selector <s|'*'> CSS selector
|
||||||
@*/
|
@*/
|
||||||
children: function children() {
|
children: function children(selector) {
|
||||||
var children = Ox.unique(Ox.flatten(elements.map(function(element) {
|
var children = Ox.unique(Ox.flatten(elements.map(function(element) {
|
||||||
return Ox.slice(element.childNodes);
|
return Ox.slice(element.childNodes);
|
||||||
})));
|
})));
|
||||||
|
@ -467,7 +467,7 @@ Ox.$ = Ox.element = function $(value) {
|
||||||
([selector]) -> <[h]> Ancestor elements
|
([selector]) -> <[h]> Ancestor elements
|
||||||
selector <s|'*'> CSS selector
|
selector <s|'*'> CSS selector
|
||||||
@*/
|
@*/
|
||||||
parents: function parents() {
|
parents: function parents(selector) {
|
||||||
var parents = [];
|
var parents = [];
|
||||||
Ox.reverse(elements).forEach(function(element) {
|
Ox.reverse(elements).forEach(function(element) {
|
||||||
var parent = element;
|
var parent = element;
|
||||||
|
@ -642,7 +642,7 @@ Ox.$ = Ox.element = function $(value) {
|
||||||
([selector]) -> <[h]> Siblings
|
([selector]) -> <[h]> Siblings
|
||||||
selector <s|'*'> CSS selector
|
selector <s|'*'> CSS selector
|
||||||
@*/
|
@*/
|
||||||
siblings: function siblings() {
|
siblings: function siblings(selector) {
|
||||||
var siblings = Ox.unique(elements.map(function(element) {
|
var siblings = Ox.unique(elements.map(function(element) {
|
||||||
return Ox.filter(
|
return Ox.filter(
|
||||||
element.parentNode.childNodes,
|
element.parentNode.childNodes,
|
||||||
|
|
Loading…
Reference in a new issue