All files export their public interface if exports is available.

This commit is contained in:
Chad Weider 2012-01-15 17:23:48 -08:00
parent 003c2a59aa
commit 2b5d7a0048
35 changed files with 165 additions and 4 deletions

View file

@ -119,3 +119,7 @@ colorutils.blend = function(c1, c2, t)
{
return [colorutils.scale(t, c1[0], c2[0]), colorutils.scale(t, c1[1], c2[1]), colorutils.scale(t, c1[2], c2[2])];
}
if (typeof exports !== 'undefined') {
exports.colorutils = colorutils;
}