Ox.*List do not share updateCallbacks with Ox.List, Ox.clone(self) is passed for event handler

This commit is contained in:
j 2012-06-26 15:44:22 +00:00
parent 544aa77223
commit 75fe62730c
4 changed files with 4 additions and 4 deletions

View file

@ -99,7 +99,7 @@ Ox.IconList = function(options, self) {
sort: self.options.sort, sort: self.options.sort,
type: 'icon', type: 'icon',
unique: self.options.unique unique: self.options.unique
}, Ox.clone(self)) // pass event handler }, Ox.extend(Ox.clone(self), {updateCallbacks: []})) // pass event handler
.addClass('OxIconList Ox' + Ox.toTitleCase(self.options.orientation)) .addClass('OxIconList Ox' + Ox.toTitleCase(self.options.orientation))
.bindEvent({ .bindEvent({
select: function() { select: function() {

View file

@ -75,7 +75,7 @@ Ox.InfoList = function(options, self) {
sort: self.options.sort, sort: self.options.sort,
type: 'info', type: 'info',
unique: self.options.unique unique: self.options.unique
}, Ox.clone(self)) }, Ox.extend(Ox.clone(self), {updateCallbacks: []})) // pass event handler
.addClass('OxInfoList') .addClass('OxInfoList')
.bindEvent({ .bindEvent({
select: function() { select: function() {

View file

@ -241,7 +241,7 @@ Ox.TextList = function(options, self) {
sums: self.options.sums, sums: self.options.sums,
type: 'text', type: 'text',
unique: self.unique unique: self.unique
}, Ox.clone(self)) // pass event handler }, Ox.extend(Ox.clone(self), {updateCallbacks: []})) // pass event handler
.addClass('OxBody') .addClass('OxBody')
.css({ .css({
top: (self.options.columnsVisible ? 16 : 0) + 'px', top: (self.options.columnsVisible ? 16 : 0) + 'px',

View file

@ -62,7 +62,7 @@ Ox.TreeList = function(options, self) {
max: self.options.max, max: self.options.max,
min: self.options.min, min: self.options.min,
unique: 'id' unique: 'id'
}, Ox.clone(self)) }, Ox.extend(Ox.clone(self), {updateCallbacks: []})) // pass event handler
.addClass('OxTextList OxTreeList') .addClass('OxTextList OxTreeList')
.css({ .css({
width: self.options.width + 'px', width: self.options.width + 'px',