new CompareList()
Constructs a new compare list.
Members
(inner) categoryProducts
Hash of category IDs to arrays of product IDs.
(inner) currentCategoryID
The ID of the category currently being compared.
(inner) that
Copy of reference to this, for use in scopes where this refers to another object.
Methods
(inner) toJSON() → {String}
Returns a string representation of this compare list, used to store comparison information in the session.
Returns:
JSON object representing a product comparison.
- Type
- String