menu

SiteGenesis / Server-side JS / Class: CompareList

models/CompareModel~ CompareList

new CompareList()

Constructs a new compare list.

Source:

Members

(inner) categoryProducts

Hash of category IDs to arrays of product IDs.

Source:

(inner) currentCategoryID

The ID of the category currently being compared.

Source:

(inner) that

Copy of reference to this, for use in scopes where this refers to another object.

Source:

Methods

(inner) toJSON() → {String}

Returns a string representation of this compare list, used to store comparison information in the session.

Source:
Returns:

JSON object representing a product comparison.

Type
String