Versions Compared

Key

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

...

Note

Here's an idea for another way to frame this concept:

A model object is any type of JavaScript object that represents the data in your application. Infusion doesn't impose any specific contracts on what types of objects can be a model, but all model objects must be successfully copyable using the fluid.copy() function. Ordinarily, this will probably a JSON-compatible object, but the framework doesn't limit you to this.

Java developers may recognize the a similarity to the concept of POJOs (Plain Old JavaScript Objects).

fluid.copy() uses jQuery's .extend() method to make a deep copy of any object.