[Commits] [fluid-project/infusion] db474a: FLUID-4165: Pretty messy fix for "rendererComponen...

noreply at github.com noreply at github.com
Wed Mar 30 05:55:20 UTC 2011

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

Commit: db474aab142b1a91032a72bb06f4909315127af9
Author: Antranig Basman <antranig.basman at colorado.edu>
Date:   2011-03-29 (Tue, 29 Mar 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-4165: Pretty messy fix for "rendererComponent does not create applier" issue, exposing the really rotten nature of options merging code for initRendererComponent. In theory this should have happened automatically as a result of inheriting from the "model-bearing grade" but as a result of a number of issues did not work. Firstly, the "auxiliary init function" for modelComponent was actually a postInit rather than a preInit (which actually had not existed at the time the grade was written) meaning that it did not bite in time for the overall workflow of initRendererComponent. This workflow is deeply imperative and also exposes numerous nooks and crannies for model and applier to get lost. Finally, the "grade impersonation scheme" for components written without grade was found to be insufficiently realistic - whilst we still ALLOW users to write components without grades, the impersonation of the grade provided by the specific init function should now be good for all purpo
 ses during construction. Also took the opportunity to make "autoBind" the default for a renderer component... every user will want this... even if they have NO IDEA WHAT IT IS!

More information about the Commits mailing list