Skip to content

Commit

Permalink
Fix for browser environment with requirejs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstefaniuk committed Feb 11, 2015
1 parent fff4788 commit 6b14f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/imagediff.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
} catch (e) {}
module.exports = definition(root, name, Canvas);
} else if (typeof define === 'function' && typeof define.amd === 'object') {
define(definition);
define(definition(root, name));
} else {
root[name] = definition(root, name);
}
Expand Down

0 comments on commit 6b14f2b

Please sign in to comment.