This commit is contained in:
rolux 2014-08-21 17:55:42 +02:00
parent e18310fe53
commit 69933ce94c

View file

@ -53,14 +53,14 @@ Ox.$ = Ox.element = function(value) {
}
function removeOxElements(parent, includeParent) {
return;
if (includeParent) {
removeOxElement(parent);
} else {
$(parent).find('.OxElement').forEach(removeOxElement);
Ox.$(parent).find('.OxElement').forEach(removeOxElement);
}
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() {
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) {
return Ox.unique(elements.map(function(element) {
return this[0].querySelectorAll(string || '*');
return element.querySelectorAll(string || '*');
}));
},
/*@