Ox.*List do not share updateCallbacks with Ox.List, Ox.clone(self) is passed for event handler
This commit is contained in:
parent
544aa77223
commit
75fe62730c
4 changed files with 4 additions and 4 deletions
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue