mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-29 11:49:13 -04:00
First baby steps towards requirejs
This commit is contained in:
parent
f5d1cd1751
commit
0e5cd65d8d
3 changed files with 8 additions and 0 deletions
|
@ -15,6 +15,7 @@ function loadFn(path, hookName) {
|
|||
functionName = parts[1];
|
||||
}
|
||||
|
||||
console.log(["LOADING", path]);
|
||||
var fn = require(path);
|
||||
functionName = functionName ? functionName : hookName;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue