Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- no more !function to make Closure compiler happy

  • Loading branch information...
commit 4721e569fb4a9c335568ae77e03307a26af72f4f 1 parent 10d3861
Dustin Diaz ded authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/ender.file.js
  2. +1 −1  package.json
6 lib/ender.file.js
View
@@ -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') {
2  package.json
View
@@ -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)"
Please sign in to comment.
Something went wrong with that request. Please try again.