projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
229f28a
)
Roo/form/ComboBoxArray.js
author
Edward
<edward@roojs.com>
Thu, 7 May 2015 09:03:49 +0000
(17:03 +0800)
committer
Edward
<edward@roojs.com>
Thu, 7 May 2015 09:03:49 +0000
(17:03 +0800)
Roo/form/ComboBoxArray.js
patch
|
blob
|
history
diff --git
a/Roo/form/ComboBoxArray.js
b/Roo/form/ComboBoxArray.js
index
0569f25
..
e2482d6
100644
(file)
--- a/
Roo/form/ComboBoxArray.js
+++ b/
Roo/form/ComboBoxArray.js
@@
-469,11
+469,14
@@
Roo.extend(Roo.form.ComboBoxArray.Item, Roo.BoxComponent, {
return;
}
return;
}
- this.cb.items.remove(this);
- this.el.child('img').un('click', this.remove, this);
- this.el.remove();
- this.cb.updateHiddenEl();
+ if(false !== this.cb.fireEvent('remove', this.cb, this)){
+ this.cb.items.remove(this);
+ this.el.child('img').un('click', this.remove, this);
+ this.el.remove();
+ this.cb.updateHiddenEl();
+
+ this.cb.fireEvent('remove', this.cb, this);
+ }
- this.cb.fireEvent('remove', this.cb, this);
}
});
\ No newline at end of file
}
});
\ No newline at end of file