Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
fluid.defaults("fluid.uploader.fileQueue", { 
    ...
    invokers: {
        start: {
            funcName: "fluid.uploader.fileQueue.start",
            args: "{that}"
        },
        startFile: {
            funcName: "fluid.uploader.fileQueue.startFile",
            args: "{that}.currentBatch",
            dynamic: true
        },
        ...
    },
    ...
}

...

Invoker triggering a model change to some component's model

If the invoker's record contains the field changePath (rather than the standard func/funcName) this is recognised as a special type of invoker triggering a change to a particular component's model via its ChangeApplier. This type of record is documented in its own section with the ChangeApplier API. The compact syntax may not be used with this variety of record.

"this"-ist invoker binding to a OO-style JavaScript function referencing "this"

Specifying an invoker with a "this" property when you are using a function that makes use of allows the invocation of functions whose body makes a reference to the special JavaScript value "this" internally. These are generally functions external to the Infusion framework, since it is a Fluid community standard to write "that"-ist functions whose execution is independent of the calling context. These can be any functions, but will most often be used for jQuery methods. See Declarative this-ism in IoC for more details. Note that the string this must always be quoted when appearing as a key as it is a JavaScript keyword.

...