typos
This commit is contained in:
parent
e18310fe53
commit
69933ce94c
1 changed files with 5 additions and 5 deletions
|
@ -53,14 +53,14 @@ Ox.$ = Ox.element = function(value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeOxElements(parent, includeParent) {
|
function removeOxElements(parent, includeParent) {
|
||||||
return;
|
|
||||||
if (includeParent) {
|
if (includeParent) {
|
||||||
removeOxElement(parent);
|
removeOxElement(parent);
|
||||||
} else {
|
} else {
|
||||||
$(parent).find('.OxElement').forEach(removeOxElement);
|
Ox.$(parent).find('.OxElement').forEach(removeOxElement);
|
||||||
}
|
}
|
||||||
function removeOxElement(element) {
|
function removeOxElement(element) {
|
||||||
Ox.getOxElement(element).removeElement();
|
var $element = Ox.getOxElement(element);
|
||||||
|
$element && $element.removeElement();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ Ox.$ = Ox.element = function(value) {
|
||||||
@*/
|
@*/
|
||||||
children: function children() {
|
children: function children() {
|
||||||
return Ox.unique(Ox.flatten(elements.map(function(element) {
|
return Ox.unique(Ox.flatten(elements.map(function(element) {
|
||||||
return Ox.slice(element.childNodes);
|
return element.childNodes;
|
||||||
})));
|
})));
|
||||||
},
|
},
|
||||||
/*@
|
/*@
|
||||||
|
@ -237,7 +237,7 @@ Ox.$ = Ox.element = function(value) {
|
||||||
@*/
|
@*/
|
||||||
find: function find(string) {
|
find: function find(string) {
|
||||||
return Ox.unique(elements.map(function(element) {
|
return Ox.unique(elements.map(function(element) {
|
||||||
return this[0].querySelectorAll(string || '*');
|
return element.querySelectorAll(string || '*');
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
/*@
|
/*@
|
||||||
|
|
Loading…
Reference in a new issue