openlayers/openlayers — pull request #207 by probins (2012-02-09 11:11:58+00:00)
Title: Change Protocol/Script registry to object

As discussed in #181, fix to allow Protocol/Script to function with servers, like Fusion Tables, which don't allow square brackets in the callback name.

I've not been able to reproduce the other problem I mentioned, where the callback function gets deleted before it is executed, but suspect it has to do with a fault in the logic in that unregister() is executed twice, once in register() and once in destroyRequest(). As this seems to me to belong logically in destroyRequest(), I have removed the statement from register().

I have changed the appropriate test for callback url, and all tests pass ok.