TinyColor
TinyColor copied to clipboard
r.js namespace support
Improves requirejs support of tinycolor by supporting namespaces in the r.js optimizer as described here http://requirejs.org/docs/faq-optimization.html
Interesting, I've had some weird stuff happen with all the different ways to import the script (like https://github.com/bgrins/spectrum/pull/113 and https://github.com/bgrins/spectrum/issues/41).
Since you seem to know something about this, maybe you would be a good person to ask - what is the current "best" way to expose the lib to all the different environments? Here is what we are doing right now - https://github.com/bgrins/TinyColor/blob/master/tinycolor.js#L950-L961. And will this change still work with older require/amd versions?