first commit
This commit is contained in:
18
MessagesMap/Scripts/stand-alone.js
Normal file
18
MessagesMap/Scripts/stand-alone.js
Normal file
@@ -0,0 +1,18 @@
|
||||
var svgPanZoom = require('./svg-pan-zoom.js');
|
||||
|
||||
// UMD module definition
|
||||
(function(window, document){
|
||||
// AMD
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('svg-pan-zoom', function () {
|
||||
return svgPanZoom;
|
||||
});
|
||||
// CMD
|
||||
} else if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = svgPanZoom;
|
||||
|
||||
// Browser
|
||||
// Keep exporting globally as module.exports is available because of browserify
|
||||
window.svgPanZoom = svgPanZoom;
|
||||
}
|
||||
})(window, document)
|
||||
Reference in New Issue
Block a user