Comments (6)
Hi,
not sure I get the point... this scenario works fine for e.g. commons.DropdownBoxRenderer and also a simple definition like:
var r1 = sap.ui.core.Renderer.extend(sap.ui.commons.ButtonRenderer);
var r2 = sap.ui.core.Renderer.extend(r1);
works. And I don't immediately see where "_super" is overwritten.
Can you provide a failing jsbin example?
Thanks
Andreas
from openui5.
This happens when extending the PanelRenderer, since it has a static function object:
var r1 = sap.ui.core.Renderer.extend(sap.ui.commons.PanelRenderer);
var r2 = sap.ui.core.Renderer.extend(r1);
from openui5.
Doesn't fail for me...:
http://jsbin.com/qecuyuyu/1/edit
from openui5.
Modified example at http://jsbin.com/qecuyuyu/7/edit shows the failure. If you look in the console, you'll see "Uncaught TypeError: Cannot read property 'apply' of undefined" errors.
from openui5.
Dear cmastrandrea,
Thank you very much for reporting this one
I forwarded this internally as ticket 0120031469 0000770032 2014.
Best regards,
Martin
from openui5.
Dear cmastrandrea,
just received some feedback on this one: As a workaround, you could rely on the renderer inheritance that Notepad controls provide:
If you specify a renderer as object literal or function, the Notepad controls automatically let that object inherit from the renderer of the base class. and this inheritance does not use the Renderer.extend
but an improved implementation based on a prototype chain.
Nevertheless, this issue is still open and we need to be workon it.
Best Regards,
Martin
from openui5.
Related Issues (20)
- PDFViewer does not show PDF content anymore HOT 3
- oDataModel.create issue HOT 1
- sap.ui.core.URI type definition HOT 1
- altTypes produces registerEnum errors HOT 1
- Assertion failed: Method 'class' must be called with exactly one class name... Why? HOT 1
- How to set decimal places in Input using formatOptions using a JSONModel HOT 1
- P13n sorting sequence is incorrect HOT 2
- Link doesn't work HOT 3
- sap.f.SidepanelItem does not render SVG Icon HOT 1
- JSONModel loadData() with POST puts oParameters into Payload as urlencoded HOT 4
- sap.m.Tree: oTree.getBinding("items").expandNodeToLevel(iIndex, iLevel) -> e. HOT 1
- Eventbus.publish calls its listeners without a try catch HOT 1
- Spacing of options in search field suggestions menu changes when some characters are deleted HOT 2
- Add custom launchpad item deprecation HOT 2
- sap.m.MenuItem inconsistent leading space with belize theme HOT 2
- Select Dialog confirm event not fired with OData Model Change
- sap.m.Tree is showing wrong deepest level, and expand arrows on leaf icons HOT 1
- App loading fails with error sap/ushell/services/_AppState/AppStatePersistencyMethod & sap.ushell.services.ShellNavigation is deprecated HOT 1
- [Table - MultiSelectMode | Horizon High Contrast White Mode ]: On Table Selection in safari browser the row color is turning black & all the content becomes unreadable HOT 2
- sap.f.IDynamicPageStickyContent: missing interface functions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openui5.