mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Bug 939671 - Correctly implement setters for onselectionchange and onsurroundingtextchange. r=yxl
This commit is contained in:
parent
ed2d409f22
commit
150fdf79b2
@ -673,7 +673,7 @@ MozInputContext.prototype = {
|
||||
},
|
||||
|
||||
set onsurroundingtextchange(handler) {
|
||||
this.__DOM_IMPL__.setEventHandler("onsurroundingtextchange");
|
||||
this.__DOM_IMPL__.setEventHandler("onsurroundingtextchange", handler);
|
||||
},
|
||||
|
||||
get onselectionchange() {
|
||||
@ -681,7 +681,7 @@ MozInputContext.prototype = {
|
||||
},
|
||||
|
||||
set onselectionchange(handler) {
|
||||
this.__DOM_IMPL__.setEventHandler("onselectionchange");
|
||||
this.__DOM_IMPL__.setEventHandler("onselectionchange", handler);
|
||||
},
|
||||
|
||||
replaceSurroundingText: function ic_replaceSurrText(text, offset, length) {
|
||||
|
Loading…
Reference in New Issue
Block a user