Closed JieC closed 11 years ago
Ah, yes—I forgot to use square brackets, so Closure Compiler is munging the property name. Fix forthcoming; will update the cdnjs
versions the next time I cut a release. Thanks!
Edit: This would probably need to be in a post-build step, à la Lo-Dash—given that r.js
specifically checks for define.amd
, rather than define["amd"]
.
Added a post-build step to ensure that the define
pragma is not munged. This will go out with the next release.
In json3.min.js,
define.amd
is changed todefine.c
by the compressor. As a result, the 'define' check always returnfalse
unless there is adefine.c
object