remove useless root variable in umd module formatter

This commit is contained in:
Sebastian McKenzie
2014-10-19 17:48:59 +11:00
parent e76462303e
commit 44966849f9
13 changed files with 24 additions and 24 deletions

View File

@@ -43,6 +43,6 @@ UMDFormatter.prototype.transform = function (ast) {
//
var call = b.callExpression(runner, [b.thisExpression(), factory]);
var call = b.callExpression(runner, [factory]);
program.body = [b.expressionStatement(call)];
};

View File

@@ -1,4 +1,4 @@
(function (root, factory) {
(function (factory) {
if (typeof define === "function" && define.amd) {
define(AMD_ARGUMENTS, factory);
} else if (typeof exports !== "undefined") {