timrwood/moment — pull request #766 by gensym (2013-05-05 04:25:31+00:00)
Title: Format function now uses "instanceof" on a var rather than "typeof" on t...

...hat var's call to determine if the variable is a function.

This fixes an incompatibility with ClojureScript, which defines String.prototype.call as a function.

That ClojureScript defines String.prototype.call is admittedly undesirable, but the timeline for changing that behavior is unknown, and this fix will allow ClojureScript uses to use moment.js in the interim, with no downside that I'm aware of.