Permalink
Browse files

Build: Use local variable _ for underscore

  • Loading branch information...
gseguin committed Mar 27, 2013
1 parent e900d62 commit 660efc58df39223341152dcab40ddfe4c9e4ba1d
Showing with 5 additions and 4 deletions.
  1. +5 −4 Gruntfile.js
View
@@ -1,7 +1,8 @@
module.exports = function( grunt ) {
"use strict";
- var path = require( "path" ),
+ var _ = grunt.util._,
+ path = require( "path" ),
httpPort = Math.floor( 9000 + Math.random()*1000 ),
name = "jquery.mobile<%= versionSuffix %>",
dist = "dist",
@@ -362,13 +363,13 @@ module.exports = function( grunt ) {
options: {
urls: (function() {
// Find the test files
- var suites = grunt.util._.without( ( grunt.option( "suites" ) || "" ).split( "," ), "" ),
- types = grunt.util._.without( ( grunt.option( "types" ) || "" ).split( "," ), "" ),
+ var suites = _.without( ( grunt.option( "suites" ) || "" ).split( "," ), "" ),
+ types = _.without( ( grunt.option( "types" ) || "" ).split( "," ), "" ),
patterns, paths, idx, prefixes = ["tests/unit/", "tests/integration/"],
onePath = "",
uniquePaths = [],
versionedPaths = [],
- jQueries = grunt.util._.without( ( grunt.option( "jqueries" ) || process.env.JQUERIES || "" ).split( "," ), "" );
+ jQueries = _.without( ( grunt.option( "jqueries" ) || process.env.JQUERIES || "" ).split( "," ), "" );
if( types.length ){
prefixes = [];

0 comments on commit 660efc5

Please sign in to comment.