Backbone.js: encapsulating view functions?

Looking through the source that binds the events ( delegateEvents ) which is called from the constructor, it is pretty clear that it works on variables with in the scope of the object.

Looking through the source that binds the events (delegateEvents) which is called from the constructor, it is pretty clear that it works on variables with in the scope of the object. documentcloud.github.com/backbone/docs/b... You could, however, override delegateEvents to be a bit smarter... You could parse the value for dots and chain your tokens. You could even check the type of the value and use an actual function in place of the string.

That might give you better control the way you want. More info on the delegateEvents function: documentcloud.github.com/backbone/#View-....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions