summaryrefslogtreecommitdiffstats
path: root/src/loader.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-07-26 09:17:34 +0100
committerwout <wout@impinc.co.uk>2013-07-26 09:17:34 +0100
commit21d6c0b30a530ce7746f789921c7135079f43338 (patch)
treee31f12819b83222cccdaaebbb171e800e97ffff5 /src/loader.js
parent0685d55d3125f212975807f540520cffb663d9a8 (diff)
downloadsvg.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.js6
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