When I create a class like example below. How would I remove a class
so its not in memory.
namespace.Popup = Class.create(
{
initialize: function(params){
...
},
show:function(){
// create or show
}
});
I was thinking of creating this at the start of my application and
just hiding and showing the popup which will be a div that will be
passed into the popup class as a container.
In other languages I have called the class everytime a user rolls over
an element like below.
//pseudo code
var popup;
function rollever(){
var popup = new Popup();
popup.show();
}
function rollout(){
if (popup) popup = null;
}
How would you remove a class like above in prototype.
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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-scriptaculous?hl=en.