vojtech-dobes/nette.ajax.js — pull request #14 by vojtech-dobes (2012-06-09 22:34:29+00:00)
Title: Extensions can be manipulated after initialization

Relates to #10. In current state, extensions cannot be obtained, added or removed by `ext()` method after initialization. But it's mystifying: if you acquire instance of extension before initialization, you can still manipulate it later (it would extremely difficult to prevent this in Javascript).

This change removes initialization restriction. It also changes API of extension - now only context is returned by `ext('foo')`. I suppose the event handlers are core of extension and should not be exposed to user change. Extension can simply provide interface for changes via its context.