Tweak convnet to use Meteor-style exports

This commit is contained in:
Shaunak Kishore
2015-09-12 21:16:50 -04:00
parent 5899992e9a
commit 22dc07aaa2

View File

@ -2112,11 +2112,4 @@ var convnetjs = convnetjs || { REVISION: 'ALPHA' };
global.MagicNet = MagicNet;
})(convnetjs);
(function(lib) {
"use strict";
if (typeof module === "undefined" || typeof module.exports === "undefined") {
window.jsfeat = lib; // in ordinary browser attach library to window
} else {
module.exports = lib; // in nodejs
}
})(convnetjs);
this.convnetjs = convnetjs;