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
        },
        ...
    },
    ...
}

 

"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 a reference to "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.

...