BlueSpire/Durandal — pull request #354 by aeons (2013-10-24 08:23:46+00:00)
Title: Check for obj.prototype before reading or assigning

When using the ['lodash-amd'](https://npmjs.org/package/lodash-amd) package, `setModuleId` fails, since the functions defined by LoDash aren't the type that have a `.prototype` property.

This just checks that `obj.prototype` exists before assigning or reading it.