forked from extern/egroupware
Avoid double-binding change & focus handlers
This commit is contained in:
parent
cbeeb85251
commit
b7487f8b72
@ -106,10 +106,12 @@ var et2_inputWidget = et2_valueWidget.extend([et2_IInput,et2_ISubmitListener],
|
|||||||
var node = this.getInputNode();
|
var node = this.getInputNode();
|
||||||
if (node)
|
if (node)
|
||||||
{
|
{
|
||||||
$j(node).bind("change.et2_inputWidget", this, function(e) {
|
$j(node)
|
||||||
|
.off('.et2_inputWidget')
|
||||||
|
.bind("change.et2_inputWidget", this, function(e) {
|
||||||
e.data.change.call(e.data, this);
|
e.data.change.call(e.data, this);
|
||||||
});
|
})
|
||||||
$j(node).bind("focus", this, function(e) {
|
.bind("focus.et2_inputWidget", this, function(e) {
|
||||||
e.data.focus.call(e.data, this);
|
e.data.focus.call(e.data, this);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user