public
Fork of xilinus/prototypeui
Description: Prototype UI
Homepage: http://prototype-ui.com
Clone URL: git://github.com/starpeak/prototypeui.git
starpeak (author)
Mon Oct 06 10:49:51 -0700 2008
commit  a1a59bd5cdea207a4fe13b8aa946a1768992b548
tree    7314743004228f37cc69579778a9d5d7dcab4288
parent  9ef3f79b1d0dd2c8001654aeed809977872ee20c
...
76
77
78
79
 
80
81
82
...
76
77
78
 
79
80
81
82
0
@@ -76,7 +76,7 @@ var CSS = (function() {
0
         bgImg.match(/^url[("']+(.*)[)"']+$/i);
0
         var src = RegExp.$1;
0
         // Relative path
0
-        if (!(src[0] == '/' || src.match(/^file:/) || src.match(/^https?:/)))
0
+        if (!(src.substr(0, 1) == '/' || src.match(/^file:/) || src.match(/^https?:/)))
0
           src = docPath + "/" + src; 
0
         preloadedImages.set(bgImg, true);
0
         var image = new Image();

Comments