Re: [Proto-Scripty] Re: run function with AJAX.Updater

2012-07-30 Thread Victor
> > Here is the page being called . . . > > sayHi = function(){ > alert ('Hi'); > }; > > > My problem is that if I replace *alert* with *document.write* then the > page gets replaced with a new page. I thought the idea behind AJAX.Updater > was to replace the DIV with new data, or in this c

[Proto-Scripty] Re: PrototypeJS memory leak when using Class.create()

2012-07-30 Thread Victor
> > Please note line 65 and 70 which define an Array as "subclasses" > and push content into it. However, I'm grepped whole codes and it seems > this variable is not used anywhere. On the other hand, it will cause the > created "klass" is referenced by parent and is never freed by Ga

[Proto-Scripty] PrototypeJS memory leak when using Class.create()

2012-07-30 Thread Erwin Pan
Hi , We're using Prototype and have memory leak issue. One of it seems to be here: (https://github.com/sstephenson/prototype/blob/1fb9728/src/lang/class.js#L53 ) 54 function create() { ... 65 klass.subclasses = []; 66 67 if (parent) { 68 subclass.prototype = parent.prototyp