openlayers/openlayers — pull request #341 by tschaub (2012-03-20 23:14:50+00:00)
Title: Correcting the callback for the script protocol.

In f08119b01e81cd03296d687ce916c05ee13d4e34, the default syntax for the script protocol's callback made it so the callbacks looked like `OpenLayers.Protocol.Script.registry[c1]`. This essentially breaks the script protocol everywhere except where `c1` is defined and equals "c1" (the string).

Tests with this change demonstrate that default callbacks will now look like `OpenLayers.Protocol.Script.registry['c1']` (properly accessing the `c1` property of the registry object).