Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename utils to colorutils

  • Loading branch information...
commit f845b11395b6395984c106a5153eb409c5d62096 1 parent 7a66a6d
@bebraw authored
View
2  main.js
@@ -2,7 +2,7 @@ require(
{
paths: {
bunit: 'lib/bunit',
- utils: 'src/utils',
+ colorutils: 'src/colorutils',
assert: 'lib/assert'
}
},
View
6 src/color.js
@@ -3,15 +3,15 @@
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
- module.exports = factory(require('./utils'));
+ module.exports = factory(require('./colorutils'));
}
else if(typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
- define(['utils'], factory);
+ define(['colorutils'], factory);
}
else {
// Browser globals
- root.color = factory(root.utils);
+ root.color = factory(root.colorutils);
}
}(this, function(utils) {
var nameToHex = function(name) {
View
2  src/utils.js → src/colorutils.js
@@ -6,7 +6,7 @@
define(factory);
}
else {
- root.utils = factory();
+ root.colorutils = factory();
}
}(this, function() {
var context = function(i, func) {
View
2  tests/color.js
@@ -1,4 +1,4 @@
-define(['bunit', '../src/color', 'utils', 'assert'],
+define(['bunit', '../src/color', 'colorutils', 'assert'],
function(bunit, color, utils, assert) {
var rgba = color.rgba;
var hsva = color.hsva;
Please sign in to comment.
Something went wrong with that request. Please try again.