forked from 0x2620/oxjs
fixing encoding functions (deflate, png)
This commit is contained in:
parent
318e2e95b2
commit
816993e1b9
10 changed files with 235 additions and 143 deletions
|
|
@ -70,7 +70,7 @@ Ox.TreeList = function(options, self) {
|
|||
}
|
||||
|
||||
function constructItem(data) {
|
||||
var $item = $('<div>'),
|
||||
var $item = $('<div>'), //.css({width: self.options.width + 'px'}),
|
||||
padding = (data.level + !data.items) * 16 - 8;
|
||||
if (data.level || !data.items) {
|
||||
$('<div>')
|
||||
|
|
@ -161,14 +161,14 @@ Ox.TreeList = function(options, self) {
|
|||
items = items || self.options.items;
|
||||
level = level || 0;
|
||||
items.forEach(function(item, i) {
|
||||
var item_ = $.extend({
|
||||
var item_ = Ox.extend({
|
||||
level: level
|
||||
}, item, item.items ? {
|
||||
items: !!item.expanded ?
|
||||
parseItems(item.items, level + 1) : []
|
||||
} : {});
|
||||
ret.push(item_);
|
||||
item.items && $.merge(ret, item_.items);
|
||||
item.items && Ox.merge(ret, item_.items);
|
||||
});
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue