Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: Inline XMLViews into component-preload.js

$
0
0

Well, I'd like to combine every possible resource for a Component into one component-preload.js file.

It works quite well with JavaScript files (concatinate them or use uglify-js) but there seems to be no way to include the source of XMLViews into these javascript files.

 

I worked around that using a tiny workaround (monkey-patching View.prototype_initCompositeSupport and set viewContent to a correct value, deleting viewName) but thats kind of ugly and by no way official.

 

I'd like to know if there will be a official way to do this because, looking at the code, currently this seems to be impossible.


Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>