Sha256: 63d48e31c4363245360d0ccc7d2630e7bf1dbf9be890f0bbdd0d75fcfc8e519c
Contents?: true
Size: 853 Bytes
Versions: 2
Compression:
Stored size: 853 Bytes
Contents
define(["dojo/has"], function(has){ if(!has("host-node")){ throw new Error("node plugin failed to load because environment is not Node.js"); } return { // summary: // This AMD plugin module allows native Node.js modules to be loaded by AMD modules using the Dojo // loader. Note that this plugin will not work with AMD loaders other than the Dojo loader. // example: // | require(["dojo/node!fs"], function(fs){ // | var fileData = fs.readFileSync("foo.txt", "utf-8"); // | }); load: function(/*string*/ id, /*Function*/ require, /*Function*/ load){ // summary: // Standard AMD plugin interface. See https://github.com/amdjs/amdjs-api/wiki/Loader-Plugins // for information. if(!require.nodeRequire){ throw new Error("Cannot find native require function"); } load(require.nodeRequire(id)); } }; });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dojo_rails-0.0.2 | vendor/assets/javascripts/dojo/node.js |
dojo_rails-0.0.1 | vendor/assets/javascripts/dojo/node.js |