From 370330a323a76af6e3b5b7b21e8c104963d04390 Mon Sep 17 00:00:00 2001 From: Yuan Xulei Date: Tue, 17 Jun 2014 12:05:49 +0800 Subject: [PATCH] Bug 975276 - Fix cursor parameter mistake of setComposition. r=masayuki --- dom/inputmethod/MozKeyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/inputmethod/MozKeyboard.js b/dom/inputmethod/MozKeyboard.js index ed1d348dc8f..6b584279b76 100644 --- a/dom/inputmethod/MozKeyboard.js +++ b/dom/inputmethod/MozKeyboard.js @@ -574,7 +574,7 @@ MozInputContext.prototype = { contextId: self._contextId, requestId: resolverId, text: text, - cursor: cursor || text.length, + cursor: (typeof cursor !== 'undefined') ? cursor : text.length, clauses: clauses || null }); });