Description

Saves the properties of a class in localStorage. The order is important for recovery with load method

Usage

Parameters

  • _class {Class}

    Class

  • name {String}

    Save name

  • ignore {Array} optional

    (optional) (>=1.3.1) Ignores the attributes of a class.

Example

Class.create("Test", {
    foo: 1,
    bar: 2
});
var test = Class.New("Test");
Marshal.dump(test, "slot", ["bar"]); // Saving only the foo property

Discussion