Guest User

Untitled

a guest
May 17th, 2018
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. initialize:function(form){ if(Jsx.Form.extended(form)) return;
  2. this.anchor=form.addEvent('submit',this.submit.bind(this));
  3. form.getElements('input[type=image]').addEvent('click',function(event){
  4. //need to have a refenrence to the 'this' context from outside this sub-function
  5. anchor.getElement('input[name=
  6. this.name
  7. this.submit.bind(this);
  8. });
  9. },
Add Comment
Please, Sign In to add comment