Bug 939671 - Correctly implement setters for onselectionchange and onsurroundingtextchange. r=yxl
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user