Bug 939671 - Correctly implement setters for onselectionchange and onsurroundingtextchange. r=yxl

This commit is contained in:
David Flanagan 2013-11-17 22:56:56 -08:00
parent ed2d409f22
commit 150fdf79b2

View File

@ -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) {