cjohansen/Sinon.JS — pull request #54 by felixge (2011-11-17 08:35:25+00:00)
Title: Make stub work for prototype methods

This is incredibly useful if you work with named constructors and
prototype methods.

All my classes look like this:

```js
function MyClass() {}

MyClass.prototype.myFunc = function() {};
```

Without this patch `sinon.stub(new MyClass)` does not stub my prototype methods.

Let me know what you think!