diff options
author | wout <wout@impinc.co.uk> | 2013-07-26 09:17:34 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-07-26 09:17:34 +0100 |
commit | 21d6c0b30a530ce7746f789921c7135079f43338 (patch) | |
tree | e31f12819b83222cccdaaebbb171e800e97ffff5 /src/loader.js | |
parent | 0685d55d3125f212975807f540520cffb663d9a8 (diff) | |
download | svg.js-21d6c0b30a530ce7746f789921c7135079f43338.tar.gz svg.js-21d6c0b30a530ce7746f789921c7135079f43338.zip |
Added support for CommonJS and AMD, bunped to v0.300.31
Diffstat (limited to 'src/loader.js')
-rw-r--r-- | src/loader.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/loader.js b/src/loader.js new file mode 100644 index 0000000..80644d8 --- /dev/null +++ b/src/loader.js @@ -0,0 +1,6 @@ + +// Use AMD or CommonJS if either is present +if (typeof define === 'function' && define.amd) + define(function() { return SVG }) +else if (typeof exports !== 'undefined') + exports.SVG = SVG
\ No newline at end of file |