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,691
  • 7
  • 38
  • 50

1 Answers1

0

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

Yaroslav
  • 4,543
  • 5
  • 26
  • 36