what it means to bind a function code example
Example 1: javascript bind this syntax
func.bind(this)
Example 2: bind (this)
this.getView().addEventDelegate({
onBeforeFirstShow: function() {
// Some codes
}.bind(this)
});