javascript do you always need to use bind code example
Example 1: javascript bind this syntax
func.bind(this)
Example 2: bind (this)
this.getView().addEventDelegate({
onBeforeFirstShow: function() {
// Some codes
}.bind(this)
});