diff --git a/src/Global.js b/src/Global.js index f3cc72c8..0b744347 100644 --- a/src/Global.js +++ b/src/Global.js @@ -93,29 +93,6 @@ var Kinetic = {}; (function() { // can remove the `root` use and the passing `this` as the first arg to // the top function. -( function(root, factory) { - if( typeof exports === 'object') { - // Node. Does not work with strict CommonJS, but - // only CommonJS-like enviroments that support module.exports, - // like Node. - module.exports = factory(require('b')); - } - else if( typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(['b'], factory); - } - else { - // Browser globals (root is window) - root.returnExports = factory(root.b); - } -}(this, function(b) { - //use b in some fashion. - - // Just return a value to define the module export. - // This example returns an object, but the module - // can return a function as the exported value. - return {}; -})); // if the module has no dependencies, the above pattern can be simplified to ( function(root, factory) { if( typeof exports === 'object') { diff --git a/tests/html/index.html b/tests/html/index.html index 1e243e8e..30d362b8 100644 --- a/tests/html/index.html +++ b/tests/html/index.html @@ -7,6 +7,7 @@