Remove dependency from full Bootstrap.

This commit is contained in:
Jürg Lehni 2011-03-04 20:54:57 +00:00
parent 93c3920505
commit 1bd0127ece

View file

@ -60,8 +60,8 @@ var RGBColor = this.RGBColor = Color.extend(new function() {
if (hex.length >= 4) { if (hex.length >= 4) {
var rgb = []; var rgb = [];
for (var i = 1; i < 4; i++) for (var i = 1; i < 4; i++)
rgb.push((hex[i].length == 1 rgb.push(parseInt(hex[i].length == 1
? hex[i] + hex[i] : hex[i]).toInt(16) / 255); ? hex[i] + hex[i] : hex[i], 16) / 255);
return rgb; return rgb;
} }
}; };