RobotWebTools/roslibjs — pull request #13 by baalexander (2013-03-19 22:02:31+00:00)
Title: Uses `prototype` for declaring member functions

We had a mixed way of using `ClassName.prototype.functionName = function() {}` and `this.functionName = function() {}` (from inside the constructor). Using the prototype way allows for browser optimization as it can compile the functions once instead of having to compile each time an object is initialized.