event target isn't defined on ie8
This commit is contained in:
parent
d2f7247e58
commit
774098f243
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ var SearchBox = function(editor, range, showReplaceForm) {
|
|||
event.stopPropagation(e);
|
||||
});
|
||||
event.addListener(sb, "click", function(e) {
|
||||
var t = e.target;
|
||||
var t = e.target || e.srcElement;
|
||||
var action = t.getAttribute("action");
|
||||
if (action && _this[action])
|
||||
_this[action]();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue