Iteracje w Prototype

To nie jest do konca takie oczywiste wiec pozwole sobie …

Mam np.

Scheduler = Class.create(); Scheduler.prototype = { addEntry: function(...) { // cos tam robi }, loadEntries: function(entries) { entries.each(function(entry) { this.addEntry(...); }); } }
Niestety nic z tego, aby zadzialalo trzeba uzyc funkcji bind(), czyli:

Scheduler = Class.create(); Scheduler.prototype = { addEntry: function(...) { // cos tam robi }, loadEntries: function(entries) { entries.each(function(entry) { this.addEntry(...); }.bind(this)); } }
I jest OK.