fix typo in textinput.js

This commit is contained in:
nightwing 2012-12-17 10:25:37 +04:00
commit 0514860492
4 changed files with 4 additions and 4 deletions

View file

@ -368,7 +368,7 @@ var TextInput = function(parentNode, host) {
// text.style.cssText += "background:rgba(250, 0, 0, 0.3); opacity:1;";
resetSelection(host.selection.isEmpty());
host._emit("nativecontextmenu", {target: editor});
host._emit("nativecontextmenu", {target: host});
var rect = host.container.getBoundingClientRect();
var move = function(e) {
text.style.left = e.clientX - rect.left - 2 + "px";