absoluteTo in IE7 always prefixes base directory to path #68

Closed
joeweoj opened this Issue Feb 12, 2013 · 1 comment

Projects

None yet

2 participants

joeweoj commented Feb 12, 2013

The condition:

if (resolved.path()[0] !== '/') {
    resolved._parts.path = base.directory() + '/' + resolved._parts.path;
    resolved.normalizePath();
}

is always true in IE7 because it doesn't access strings like arrays. perhaps charAt(0) instead?

Owner

I'd probably go with .slice(0, 1), but in the end it doesn't matter… Pull Request welcome hint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment