Closed (fixed)
Project:
Live CSS
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2011 at 15:31 UTC
Updated:
11 Dec 2011 at 15:52 UTC
It looks like the command var styles = $(this).html().match(/@import url\(['"](.*)['"]\)/gi); returns an object that contains all the css files as strings plus a function called "remove". And because of that function in the array the subsequent for loop failes.
I've attached a patch that resolves that issue.
| Comment | File | Size | Author |
|---|---|---|---|
| css.js_.patch | 565 bytes | jurgenhaas |
Comments
Comment #1
guybedford commentedThanks for your debugging efforts!
It sounds like in your code the Array prototype has been extended (which is perfectly valid actually - it's the Object prototype being extended that you worry about).
Comment #2
guybedford commentedThanks again Jurgen, I have included this update in the latest version (2.0).