Permalink
Browse files

- no more !function to make Closure compiler happy

  • Loading branch information...
1 parent 10d3861 commit 4721e569fb4a9c335568ae77e03307a26af72f4f @ded ded committed Mar 27, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/ender.file.js
  2. +1 −1 package.json
View
6 lib/ender.file.js
@@ -145,7 +145,7 @@ ENDER.file = module.exports = {
ENDER.file.processPackages(packages, options, function (err, result) {
result = result.join('\n\n')
if (options.sandbox) {
- result = ['!function () {', result, '}.call({});'].join('\n\n')
+ result = ['(function () {', result, '}).call({});'].join('\n\n')
}
callback(null, result)
})
@@ -445,7 +445,7 @@ ENDER.file = module.exports = {
, strippedName = packageName.replace(/.*(?=\/)\//, '')
if (source && packageName != 'ender-js' && !options.noop) {
- source = [ '!function () {\n\n var module = { exports: {} }, exports = module.exports;'
+ source = [ '(function () {\n\n var module = { exports: {} }, exports = module.exports;'
, source.replace(/\n/g, '\n ')
, 'provide("' + strippedName + '", module.exports);'
]
@@ -460,7 +460,7 @@ ENDER.file = module.exports = {
source.push('$.ender(module.exports);')
}
- source = source.join('\n\n ') + '\n\n}();'
+ source = source.join('\n\n ') + '\n\n}());'
}
if (options.sandbox && packageName == 'ender-js') {
View
2 package.json
@@ -1,7 +1,7 @@
{
"name": "ender"
, "description": "Open Module JavaScript Framework"
- , "version": "0.8.6"
+ , "version": "0.8.7"
, "authors": [
"Jacob Thornton <jacob@twitter.com> (https://github.com/fat)"
, "Dustin Diaz <dustin@obvious.com> (https://github.com/ded)"

0 comments on commit 4721e56

Please sign in to comment.