wallet-core/lib/scriptOnly.js
Florian Dold 9af485a584 Squashed 'thirdparty/systemjs/' content from commit 5ed69b6
git-subtree-dir: thirdparty/systemjs
git-subtree-split: 5ed69b6344e8fc1cd43bf758350b2236f57e1499
2016-10-10 03:50:11 +02:00

17 lines
349 B
JavaScript

/*
* Script-only addition used for production loader
*
*/
hookConstructor(function(constructor) {
return function() {
constructor.apply(this, arguments);
__global.define = this.amdDefine;
};
});
hook('fetch', function(fetch) {
return function(load) {
load.metadata.scriptLoad = true;
return fetch.call(this, load);
};
});