doubble textfield issue

This commit is contained in:
DadaMonad
2015-01-19 03:38:19 +00:00
parent bec7d107bd
commit 0421b1ab6a
7 changed files with 60 additions and 23 deletions

View File

@@ -284,6 +284,11 @@ module.exports = (HB)->
# yatta.bind(textbox);
#
bind: (textfield)->
# don't duplicate!
for t in @textfields
if t is textfield
return
word = @
textfield.value = @val()
@textfields.push textfield
@@ -336,7 +341,7 @@ module.exports = (HB)->
writeContent = (content)->
textfield.textContent = content
writeContent this.val()
@observe (events)->
for event in events