From e12540ba6612a5e34219c1ddb32ba2fe46f66c26 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 30 Jun 2013 00:29:03 -0700 Subject: [PATCH] Allow the `iife` command to not have `%output%` specified. Former-commit-id: c11cd1d33479e64a689a2412c764be15a807c9ae --- build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index b8b474df8..9e0acef0e 100755 --- a/build.js +++ b/build.js @@ -3638,9 +3638,9 @@ index = iife.indexOf(token); source = source.match(/^\/\**[\s\S]+?\*\/\n/) + - iife.slice(0, index) + + (index > -1 ? iife.slice(0, index) : iife) + source.replace(/^[\s\S]+?\(function[^{]+?{|}\(this\)\)[;\s]*$/g, '') + - iife.slice(index + token.length); + (index > -1 ? iife.slice(index + token.length) : '') } }());