As far as I know, the dot and bracket notation in Javascript have the exact same effects (other than accessing properties with special names). I was reading this piece of code in the Google Maps utilities library and I came across this line (123):
MapLabel.prototype['onAdd'] = MapLabel.prototype.onAdd;
What is the significance of this line? Does it have any actual effects?