]> git.ipfire.org Git - thirdparty/moment.git/commit
Format function now uses "instanceof" on a var rather than "typeof" on that var's... 766/head
authorgensym <david@gensym.org>
Sun, 5 May 2013 04:17:20 +0000 (23:17 -0500)
committergensym <david@gensym.org>
Sun, 5 May 2013 04:17:20 +0000 (23:17 -0500)
commit340f7e3acb689d949755993cd5d33d217d97b2d9
tree4c3ad328f3061d465f72781264b2b2649fd821bb
parent2e496f57fe72d0ca0ec03342ceb8db6e09e7af45
Format function now uses "instanceof" on a var rather than "typeof" on that 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.
moment.js
test/moment/string_prototype.js [new file with mode: 0644]