Skip to content

Commit

Permalink
Renamed define to d3define
Browse files Browse the repository at this point in the history
  • Loading branch information
burleight committed Nov 27, 2018
1 parent c623ca0 commit 210e15e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function requireFrom(resolver) {
};
script.async = true;
script.src = url;
window.define = define;
window.d3define = d3define;
document.head.appendChild(script);
}));
return module;
Expand Down Expand Up @@ -122,7 +122,7 @@ function isexports(name) {
return (name + "") === "exports";
}

function define(name, dependencies, factory) {
function d3define(name, dependencies, factory) {
const n = arguments.length;
if (n < 2) factory = name, dependencies = [];
else if (n < 3) factory = dependencies, dependencies = typeof name === "string" ? [] : name;
Expand All @@ -141,4 +141,4 @@ function define(name, dependencies, factory) {
});
}

define.amd = {};
d3define.amd = {};

0 comments on commit 210e15e

Please sign in to comment.