[Commits] [fluid-project/infusion] 9ab11c: FLUID-4159, FLUID-4151: Allow demands blocks to be...

noreply at github.com noreply at github.com
Tue Mar 29 07:58:48 UTC 2011


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

Commit: 9ab11c05ad2813f8baefff6abcd2c27b41e4ed92
    https://github.com/fluid-project/infusion/commit/9ab11c05ad2813f8baefff6abcd2c27b41e4ed92
Author: Antranig Basman <antranig.basman at colorado.edu>
Date:   2011-03-29 (Tue, 29 Mar 2011)

Changed paths:
  M src/webapp/components/uploader/js/FileQueueView.js
  M src/webapp/components/uploader/js/Uploader.js
  M src/webapp/demos/uploader/html/uploader.html
  M src/webapp/demos/uploader/js/uploader.js
  M src/webapp/framework/core/js/FluidDebugging.js
  M src/webapp/framework/core/js/FluidIoC.js
  M src/webapp/tests/component-tests/uploader/html/FileQueueView-test.html
  M src/webapp/tests/component-tests/uploader/js/FileQueueViewTests.js

Log Message:
-----------
FLUID-4159, FLUID-4151: Allow demands blocks to be issued against the Uploader within an IoC tree. New IoC directive "fluid.alias" allows to express the intent that demands blocks should be "forwarded" from an outer function (e.g. fluid.uploader) to an inner one (e.g. fluid.uploader.multiFileUploader). Currently the only case we support is where demands blocks for the inner function ONLY specify "funcName" - other cases will fail. New powerful improvement in IoC diagnostics - file and line number tracking for fluid.demands! Include file "FluidDebugging.js" to get access to this facility on Firefox. We'll add other browsers as we understand them better (prototype code is available at emwendelin/javascript-stacktrace). Reordered demands blocks for FileQueueView so that they are properly scoped within files, and take advantage of new facility just provided for FLUID-4162 to allow nice namespacing of init functions. MAJOR change to resolution order of demands blocks - blocks with
  mismatches are now penalised above all. This makes it possible to write a "catch-all" demands block for fileQueueView.eventBinder which beats any mismatched blocks (previously the positive match on fileQueueView would beat the null match). Test cases required for fine details of demands resolution. Perhaps mismatched blocks should be discarded entirely.





More information about the Commits mailing list