From Google Maps Utility Library looking at the source of InfoBubble I found that the author creates prototype methods with dot notation, but then at the end of the method definition he reassigns the same proto property with bracket notation.
This should clarify:
/**
* Set the style of the shadow
*
* @param {number} shadowStyle The style of the shadow.
*/
InfoBubble.prototype.setShadowStyle = function(shadowStyle) {
this.set('shadowStyle', shadowStyle);
};
InfoBubble.prototype['setShadowStyle'] = InfoBubble.prototype.setShadowStyle;
Any idea?