doubble textfield issue
This commit is contained in:
		
							parent
							
								
									bec7d107bd
								
							
						
					
					
						commit
						0421b1ab6a
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@ -284,6 +284,11 @@ module.exports = (HB)->
 | 
				
			|||||||
    #   yatta.bind(textbox);
 | 
					    #   yatta.bind(textbox);
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    bind: (textfield)->
 | 
					    bind: (textfield)->
 | 
				
			||||||
 | 
					      # don't duplicate!
 | 
				
			||||||
 | 
					      for t in @textfields
 | 
				
			||||||
 | 
					        if t is textfield
 | 
				
			||||||
 | 
					          return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      word = @
 | 
					      word = @
 | 
				
			||||||
      textfield.value = @val()
 | 
					      textfield.value = @val()
 | 
				
			||||||
      @textfields.push textfield
 | 
					      @textfields.push textfield
 | 
				
			||||||
@ -336,7 +341,7 @@ module.exports = (HB)->
 | 
				
			|||||||
        writeContent = (content)->
 | 
					        writeContent = (content)->
 | 
				
			||||||
          textfield.textContent = content
 | 
					          textfield.textContent = content
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      writeContent this.val()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      @observe (events)->
 | 
					      @observe (events)->
 | 
				
			||||||
        for event in events
 | 
					        for event in events
 | 
				
			||||||
 | 
				
			|||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user