js this .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)
});