bestiejs / json3

A JSON polyfill. No longer maintained.
https://bestiejs.github.io/json3
Other
1.02k stars 150 forks source link

fix loading when both `define` and `exports` are present #32

Closed ansis closed 11 years ago

ansis commented 11 years ago

We ran into problems when users tried to use mapbox.js, which uses browserify, on a site with requirejs. Since define was defined, nothing was added to exports.

With this change, if both define and exports are present it will load it with both systems.

ansis commented 11 years ago

Woops, accidentally opened this against the release branch.