chandu wrote:
> Hi David,
>
> As usual you are right and I'm wrong.
>
> You suggested to try exhibit.getDefaultCollection().getRestrictedItems
> ();
> But I tried Exhibit.getDefaultCollection().getRestrictedItems(); (with
> capital letter E in Exhibit).
>
> I thought 'Exhibit' and 'exhibit' are same but not. I wonder what the
> difference would be
>
In object oriented programming terminology, Exhibit is a class, whereas
exhibit is one particular instance, created automatically by default for
you ... something like this:
exhibit = new Exhibit();
It's actually Exhibit.create(database), not new Exhibit(), but that's
implementation-dependent. You can see how that gets created in here:
http://api.simile-widgets.org/exhibit/2.2.0/scripts/create.js
And if you want, you can create many instances yourself
var database1 = Exhibit.Database.create();
var exhibit1 = Exhibit.create(database1);
var database2 = Exhibit.Database.create();
var exhibit2 = Exhibit.create(database2);
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---