items
simpleCart.copy( namespace )
arguments:
- namespace (string)
returns:
- new simpleCart object with the given namespace
This function creates and returns a new instance of simpleCart, using the given namespace for storage and classes. This makes it possible to have multiple carts on one page
var anotherCart = simpleCart.copy( "anotherCart" );
This cart will use the namespace “anotherCart” for html classes:
Comments
- There are no comments for this entry yet.