天天看點

ui5 framework extend function

extend is actually returning a new class by Metadata.createClass

create prototype chain

fnClass.prototype = jQuery.sap.newObject(fnBaseClass.prototype);

fnClass.prototype.constructor = fnClass;

Make the class visible as JS Object: jQuery.sap.setObject(sClassName, fnClass);

fnClass.getMetadata = fnClass.prototype.getMetadata = jQuery.sap.getter(oMetadata);

ui5 framework extend function
ui5 framework extend function
ui5 framework extend function
ui5 framework extend function
ui5 framework extend function
ui5 framework extend function
ui5 framework extend function

繼續閱讀