mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
move functions into its own folder and give it a set interface
This commit is contained in:
@@ -54,11 +54,7 @@ less.poll = less.poll || (isFileProtocol ? 1000 : 1500);
|
||||
|
||||
//Setup user functions
|
||||
if (options.functions) {
|
||||
for(var func in options.functions) {
|
||||
if (options.functions.hasOwnProperty(func)) {
|
||||
less.tree.functions[func] = options.functions[func];
|
||||
}
|
||||
}
|
||||
less.functions.functionRegistry.addMultiple(options.functions);
|
||||
}
|
||||
|
||||
var dumpLineNumbers = /!dumpLineNumbers:(comments|mediaquery|all)/.exec(location.hash);
|
||||
@@ -352,7 +348,7 @@ function loadStyleSheet(sheet, callback, reload, remaining, modifyVars) {
|
||||
}
|
||||
|
||||
less.environment.loadFile(env, sheet.href, null, function loadInitialFileCallback(e, data, path, webInfo) {
|
||||
|
||||
|
||||
var newFileInfo = {
|
||||
currentDirectory: less.environment.getPath(env, path),
|
||||
filename: path,
|
||||
|
||||
Reference in New Issue
Block a user