This commit is contained in:
cloudhead
2010-07-12 08:06:38 -04:00
parent 750dfc9e4e
commit 45da7c0fba

View File

@@ -1050,7 +1050,7 @@ if (typeof(window) !== 'undefined') {
// Used by `@import` directives
//
less.Parser.importer = function (path, paths, callback) {
if (path[0] !== '/' && paths.length > 0) {
if (path.charAt(0) !== '/' && paths.length > 0) {
path = paths[0] + path;
}
// We pass `true` as 3rd argument, to force the reload of the import.