0

Possible Duplicate:
JavaScript “this” keyword

I am now learning backbone by checking the codes of the todos app as an example. I am very confused with the codes this.model.bind('change', this.render); what does the two this mean in this statement? somebody give me an explanation?

Community
  • 1
  • 1
David
  • 2,541
  • 7
  • 33
  • 48

1 Answers1

0

Usually that code is inside initialize function of your view components, so this is the view itself.

Yaroslav
  • 3,897
  • 4
  • 21
  • 32