Grunt: Fix IIFE jQuery reference. Fixes #1255

This commit is contained in:
Rob Garrison 2016-07-15 13:43:49 -05:00
parent 148a699e72
commit acd956ef37
No known key found for this signature in database
GPG Key ID: 0A42D160D71978E1

View File

@ -43,7 +43,7 @@ module.exports = function( grunt ) {
' } else {\n' +
' factory(jQuery);\n' +
' }\n' +
'}(function($) {\n\n',
'}(function(jQuery) {\n\n',
// widgets wrapper & combined wrapper - may need a separate entry when this wrapper is redefined to make
// widgets a dependency of the core (see https://github.com/Mottie/tablesorter/issues/855)
banner: '<%= pkg.banner %>/* Includes widgets ( <%= pkg.selectedWidgets %> <%= pkg.selectedParsers %>) */\n' +
@ -55,8 +55,8 @@ module.exports = function( grunt ) {
' } else {\n' +
' factory(jQuery);\n' +
' }\n' +
'}(function($) {\n\n',
footer: '\nreturn $.tablesorter;\n}));\n'
'}(function(jQuery) {\n\n',
footer: '\nreturn jQuery.tablesorter;\n}));\n'
},
noModBanner: '/*** This file is dynamically generated ***\n' +
'█████▄ ▄████▄ █████▄ ▄████▄ ██████ ███████▄ ▄████▄ █████▄ ██ ██████ ██ ██\n' +