Fixes bug where observers didn't check the parent correctly on folder notifications. bug=329892 r=ben@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@192122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a9d5b8642f
commit
e85c1524ce
@ -349,20 +349,20 @@
|
||||
this._numBatches ? this._batchedOperation = true : this.doRebuild();
|
||||
},
|
||||
onFolderAdded: function TB_O_onFolderAdded(folder, parent, index) {
|
||||
if (folder == this._self._bms.toolbarRoot)
|
||||
if (parent == this._self._bms.toolbarRoot)
|
||||
this._numBatches ? this._batchedOperation = true : this.doRebuild();
|
||||
},
|
||||
onFolderRemoved: function TB_O_onFolderRemoved(folder, parent, index) {
|
||||
if (folder == this._self._bms.toolbarRoot)
|
||||
if (parent == this._self._bms.toolbarRoot)
|
||||
this._numBatches ? this._batchedOperation = true : this.doRebuild();
|
||||
},
|
||||
onFolderMoved: function TB_O_onFolderMoved(folder, oldParent, oldIndex, newParent, newIndex) {
|
||||
if (folder == this._self._bms.toolbarRoot)
|
||||
if (oldParent == this._self._bms.toolbarRoot ||
|
||||
newParent == this._self._bms.toolbarRoot)
|
||||
this._numBatches ? this._batchedOperation = true : this.doRebuild();
|
||||
},
|
||||
onFolderChanged: function TB_O_onFolderChanged(folder, property) {
|
||||
if (folder == this._self._bms.toolbarRoot)
|
||||
this._numBatches ? this._batchedOperation = true : this.doRebuild();
|
||||
this._numBatches ? this._batchedOperation = true : this.doRebuild();
|
||||
},
|
||||
doRebuild: function TB_O_doRebuild() {
|
||||
function hitch(obj, meth) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user