ui5 framework extend function
- 2019 年 10 月 4 日
- 笔记
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://jerry.blog.csdn.net/article/details/100824543
- 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);










