firefox dom_root issue

This commit is contained in:
DadaMonad
2015-01-22 08:57:43 +00:00
parent d93aa8a2ba
commit b39e9d6450
7 changed files with 22 additions and 7 deletions

View File

@@ -281,7 +281,10 @@ module.exports = (HB)->
# yatta.bind(textbox);
#
bind: (textfield, dom_root)->
dom_root ?= window;
dom_root ?= window
if (not dom_root.getSelection?)
dom_root = window
# don't duplicate!
for t in @textfields
if t is textfield