1
0
Fork 0
forked from 0x2620/oxjs

don't redeclare vars; fix semicolons

This commit is contained in:
rolux 2014-08-19 10:18:56 +02:00
commit 4fbfc139b4
3 changed files with 16 additions and 16 deletions

View file

@ -155,7 +155,7 @@ Ox.$ = Ox.element = function(value) {
if (arguments.length == 0) {
ret = data;
} else if (arguments.length == 1 && Ox.isString(arguments[0])) {
ret = data[arguments[0]]
ret = data[arguments[0]];
} else {
Ox.forEach(Ox.makeObject(arguments), function(value, key) {
data[key] = value;
@ -249,7 +249,7 @@ Ox.$ = Ox.element = function(value) {
nextAll: function() {
var sibling = this[0], siblings = [];
while (true) {
var sibling = sibling.nextSibling;
sibling = sibling.nextSibling;
if (!sibling) {
break;
}
@ -323,7 +323,7 @@ Ox.$ = Ox.element = function(value) {
parents: function() {
var parent = this[0], parents = [];
while (true) {
var parent = parent.parentNode;
parent = parent.parentNode;
if (!parent) {
break;
}
@ -367,7 +367,7 @@ Ox.$ = Ox.element = function(value) {
prevAll: function() {
var sibling = this[0], siblings = [];
while (true) {
var sibling = sibling.previousSibling;
sibling = sibling.previousSibling;
if (!sibling) {
break;
}