diff --git a/lib/less/parser.js b/lib/less/parser.js index ac77b407..30f3da67 100644 --- a/lib/less/parser.js +++ b/lib/less/parser.js @@ -727,7 +727,7 @@ less.Parser = function Parser(env) { // file-system operation. The function used for importing is // stored in `import`, which we pass to the Import constructor. // - import: function () { + "import": function () { var path; if ($(/@import\s+/g) && (path = $(this.entities.quoted) || $(this.entities.url)) && @@ -746,7 +746,7 @@ less.Parser = function Parser(env) { if (input[i] !== '@') return; - if (value = $(this.import)) { + if (value = $(this['import'])) { return value; } else if (name = $(/@media|@page/g)) { types = $(/[a-z:, ]+/g).trim();