1
0
Fork 0
forked from 0x2620/oxjs

Ox.break -> Ox.Break

This commit is contained in:
rolux 2012-05-24 19:20:29 +02:00
commit 544e117cb3
41 changed files with 100 additions and 100 deletions

View file

@ -607,7 +607,7 @@ Ox.List = function(options, self) {
Ox.forEach(self.$items, function($item, i) {
if ($item.options('data')[self.options.unique] == id) {
pos = i;
Ox.break();
Ox.Break()();
}
});
return pos;
@ -695,7 +695,7 @@ Ox.List = function(options, self) {
ids.push(self.$items[pos].options('data')[self.options.unique]);
} else {
notFound = true;
Ox.break();
Ox.Break()();
}
});
if (notFound) {
@ -1153,7 +1153,7 @@ Ox.List = function(options, self) {
if (Ox.toLatin(v.title).toUpperCase().indexOf(str) == 0) {
select(i);
scrollToPosition(i);
Ox.break();
Ox.Break()();
}
});
}
@ -1340,7 +1340,7 @@ Ox.List = function(options, self) {
if (oldIds.indexOf(item.id) > -1) {
newIds.push(item.id);
}
newIds.length == oldIds.length && Ox.break();
newIds.length == oldIds.length && Ox.Break()();
});
setSelected(newIds);
});

View file

@ -259,7 +259,7 @@ Ox.TextList = function(options, self) {
index++;
} else if (v.id == id) {
column = v;
Ox.break();
Ox.Break()();
}
});
column.visible = true;
@ -283,7 +283,7 @@ Ox.TextList = function(options, self) {
if (!self.options.columns[index].visible) {
addColumn(id);
add = true;
Ox.break();
Ox.Break()();
}
ids.push(id);
});
@ -291,7 +291,7 @@ Ox.TextList = function(options, self) {
Ox.forEach(self.visibleColumns, function(column) {
if (ids.indexOf(column.id) == -1) {
removeColumn(column.id);
Ox.break();
Ox.Break()();
}
});
}
@ -484,7 +484,7 @@ Ox.TextList = function(options, self) {
var x = self.drag.listOffset + offset + self.columnWidths[i] / 2;
if (i < self.drag.startPos && e.clientX < x) {
self.drag.stopPos = i;
Ox.break();
Ox.Break()();
} else if (i > self.drag.startPos && e.clientX > x) {
self.drag.stopPos = i;
}
@ -574,7 +574,7 @@ Ox.TextList = function(options, self) {
if (Ox.startsWith(value, query)) {
that.$body.options({selected: [item[self.unique]]});
Ox.Log('List', 'QUERY', query, 'VALUE', value)
Ox.break();
Ox.Break()();
}
});
}

View file

@ -121,12 +121,12 @@ Ox.TreeList = function(options, self) {
ret = Ox.extend(item, {
level: level
});
Ox.break();
Ox.Break()();
}
if (item.items) {
ret = getItemById(id, item.items, level + 1);
if (ret) {
Ox.break();
Ox.Break()();
}
}
});
@ -143,7 +143,7 @@ Ox.TreeList = function(options, self) {
ret = getParent(id, item.items);
}
if (ret) {
Ox.break();
Ox.Break()();
}
}
});