mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-01 20:27:44 +08:00
Tweak convnet to use Meteor-style exports
This commit is contained in:
9
lib/external/convnet/1.1.0/convnet.js
vendored
9
lib/external/convnet/1.1.0/convnet.js
vendored
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user