saschakiefer / generator-openui5

yeoman generator for OpenUI5 applications and assets
Other
64 stars 17 forks source link

facelessComponent extends sap.ui.core.UIComponent instead of sap.ui.core.Component #67

Open js1972 opened 10 years ago

js1972 commented 10 years ago

According to SAP Help documentation (http://help.sap.com/saphelp_nw74/helpdata/en/95/8ead51e2e94ab8bcdc90fb7e9d53d0/content.htm); a facelessComponent should extend Component and not UIComponent. IS there any reason for this or is it just an accident?

saschakiefer commented 10 years ago

That suspiciously looks like an awful bug.

js1972 commented 10 years ago

Also need to remove the call to sap.ui.core.Component.prototype.init.apply(this); as this method has been commented out of the current implementation of Component in UI5. When looking at the code you can see that the Component Model is still a huge work-in-progress... Note: it does exist for UIComponent!