it's general example for show the problem with Object.clone :)

Usually I use anothe technique:

var a = Class.create((function(){.....

  var instancePrivates = [];

  function initialize(){....
      var internalId;
      internalId = --instancePrivates;
      instancePrivates[internalId].items = []  <--- here instance private 
items !!! :)

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to