photonstorm/phaser — pull request #229 by kevinthompson (2013-11-25 17:44:53+00:00)
Title: Define default object properties on prototype.

Defining public properties on the prototypes of objects, instead of in their constructors, would allow classes that extend these objects to overwrite default values within the class definition.

This PR contains only one example of this change. This issue is more apparent when using CoffeeScript to extend Phaser classes, as exemplified in #217.