documentcloud/backbone — pull request #1551 by antonkovalyov (2012-08-14 21:58:32+00:00)
Title: Don't discard return value of default constructors. (with tests)

If you try to transform a Backbone class into an implicit factory
(i.e. a class that acts as a factory even when used with `new`) you
must have a reference to an object created by the default constructor.

This patch makes Backbone to not to discard return value of default
constructors. In addition to the scenario described above it also
makes both code paths consistent with each other.

This is a version of GH-1435 and GH-1429 (but with tests; not sure why
all other PRs didn't have tests) and an inverse of GH-1382.