[Commits] [fluid-project/infusion] ff35a8: FLUID-4189, FLUID-4190: Improvements to RendererCo...

noreply at github.com noreply at github.com
Mon Apr 25 08:18:48 UTC 2011


Branch: refs/heads/master
Home:   https://github.com/fluid-project/infusion

Commit: ff35a8bc626928e01bf0c7f2764ad0aea68a0e5c
    https://github.com/fluid-project/infusion/commit/ff35a8bc626928e01bf0c7f2764ad0aea68a0e5c
Author: Antranig Basman <antranig.basman at colorado.edu>
Date:   2011-04-25 (Mon, 25 Apr 2011)

Changed paths:
  M src/webapp/framework/core/js/Fluid.js
  M src/webapp/framework/renderer/js/RendererUtilities.js
  M src/webapp/tests/framework-tests/renderer/html/RendererUtilities-test.html
  M src/webapp/tests/framework-tests/renderer/js/RendererUtilitiesTests.js

Log Message:
-----------
FLUID-4189, FLUID-4190: Improvements to RendererComponent workflow. It is now possible to supply both functions and function names to "produceTree" - this is implemented as a unicast(!) event firer. RendererComponent now defines 3 standard events, prepareModelForRenderer, onRenderTree, and afterRender, which are fired in that order (the last of these may overlap/conflict with similarly named event which is frequently defined by users of RendererComponent). The first two are supplied arguments which they may modify (firstly the model/applier, secondly the fully expanded renderer tree) - these events are only intended for use by experts. "createRendererFn" has been renamed to "createRendererSubcomponent" and now returns a "mini-that" with two methods, "render" and "expander". The latter is now also exposed as that.renderer.expander for use during onRenderTree if tree compositing is required. TODO: continue to think a bit harder about "produceTree" and what kind of thing it is. 
 Currently it doesn't really match any other pattern in the framework. Also, it should be possible to configure an "invoker" for "produceTree" (points to GLOBALLY GINGER WORLD). NB - disabled "miscued" behaviour which would create a default event firer if an listener was registered - this case now throws an error.





More information about the Commits mailing list