From 1bd0127ece88b32dacadabfb11e3101a6ab6efd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 4 Mar 2011 20:54:57 +0000 Subject: [PATCH] Remove dependency from full Bootstrap. --- src/color/RGBColor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/color/RGBColor.js b/src/color/RGBColor.js index e8f561e9..9ea85c86 100644 --- a/src/color/RGBColor.js +++ b/src/color/RGBColor.js @@ -60,8 +60,8 @@ var RGBColor = this.RGBColor = Color.extend(new function() { if (hex.length >= 4) { var rgb = []; for (var i = 1; i < 4; i++) - rgb.push((hex[i].length == 1 - ? hex[i] + hex[i] : hex[i]).toInt(16) / 255); + rgb.push(parseInt(hex[i].length == 1 + ? hex[i] + hex[i] : hex[i], 16) / 255); return rgb; } };