(dist) build updates

This commit is contained in:
Alexis Sellier
2011-05-11 14:42:19 -04:00
parent 4463e52227
commit 8cdeda8a99
2 changed files with 22 additions and 1 deletions

7
dist/less-1.1.0.js vendored
View File

@@ -2329,6 +2329,7 @@ require('less/tree').find = function (obj, fun) {
var isFileProtocol = (location.protocol === 'file:' ||
location.protocol === 'chrome:' ||
location.protocol === 'chrome-extension:' ||
location.protocol === 'resource:');
less.env = less.env || (location.hostname == '127.0.0.1' ||
@@ -2447,7 +2448,11 @@ function loadStyleSheet(sheet, callback, reload, remaining) {
// Stylesheets in IE don't always return the full path
if (! /^(https?|file):/.test(href)) {
href = url.slice(0, url.lastIndexOf('/') + 1) + href;
if (href.charAt(0) == "/") {
href = window.location.protocol + "//" + window.location.host + href;
} else {
href = url.slice(0, url.lastIndexOf('/') + 1) + href;
}
}
xhr(sheet.href, sheet.type, function (data, lastModified) {

16
dist/less-1.1.0.min.js vendored Normal file

File diff suppressed because one or more lines are too long