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){

    // 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();

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 prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to