Migrate to new node function style

This commit is contained in:
Nick O'Leary
2014-05-03 23:32:04 +01:00
parent 5afc5857c4
commit ff49d2b217
37 changed files with 3194 additions and 3170 deletions

View File

@@ -54,7 +54,7 @@ function loadNode(nodeDir, nodeFn) {
var r = require(nodeFilename);
if (typeof r === "function") {
try {
var promise = r(RED);
var promise = r(require('../red'));
if (promise != null && typeof promise.then === "function") {
promise.then(function() {
resolve(loadTemplate(templateFilename));