Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-3505

ChangeApplier not handled properly by options merging

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1.2, 1.2
    • None
    • Data Binder
    • None

    Description

      If a ChangeApplier is provided to a component through the creator function's options structure, the options merging process carried out by fluid.initView() doesn't quite deal with the applier properly, and subsequent requests by the component to modify the model don't affect the model properly. It's possible that I shouldn't be expecting to be able to pass an applier as an option, in which case fine, perhaps someone can advise me of an alternative

      In the meantime, referencing the applier directly is a functional workaround:

      cspace.myComponent = function (container, options) {
      var that = fluid.initView("cspace.myComponent", container, options);
      that.options.applier = options.applier; // <<==== workaround
      ....

      Attachments

        Issue Links

          Activity

            People

              anastasia Anastasia Cheetham
              anastasia Anastasia Cheetham
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: