How would you implement a destroy or destructor function since
JavaScript doesn't support it? Do you manually call the method?
On Sep 24, 2007, at 11:24 AM, Les wrote:
>
> Ryan,
>
> Did you notice that each OpenLayers class has a destructor (destroy)
> and a property denoting the class name?
>
> I don't see such a destructor in Prototype or Dojo, see below:
>
> OpenLayers.Map = OpenLayers.Class({
> ....
> initialize: function (div, options) {
> },
> ....
> destroy:function() {
> },
> CLASS_NAME: "OpenLayers.Map"
> });
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" 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/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---