Hey All,
I'm just wondering how UI5 hides Javascript Object's prototype property !! I was just playing around with UI5 controls and encountered this.
sap.m.Button.prototype.Move = function(){
console.log('Move');
}
var oButton = new sap.m.Button({text:"Hello"});
oButton.Move(); // throws undefined function!
The Most interesting thing is the same code when executed in Browser console, works like a charm !
How is this possible ?