Skip to content

Commit 2ce9ca4

Browse files
committed
Code formatting
1 parent 7534492 commit 2ce9ca4

File tree

5 files changed

+50
-49
lines changed

5 files changed

+50
-49
lines changed

Gruntfile.js

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
function loadConfig(path) {
2-
var glob = require('glob');
3-
var object = {};
4-
var key;
5-
6-
glob.sync('*', {cwd: path}).forEach(function(option) {
7-
key = option.replace(/\.js$/,'');
8-
object[key] = require(path + option);
9-
});
10-
11-
return object;
2+
var glob = require('glob');
3+
var object = {};
4+
var key;
5+
6+
glob.sync('*', {
7+
cwd: path
8+
}).forEach(function(option) {
9+
key = option.replace(/\.js$/, '');
10+
object[key] = require(path + option);
11+
});
12+
13+
return object;
1214
}
1315

1416
module.exports = function(grunt) {
15-
grunt.loadTasks('grunt-tasks');
16-
17-
require('time-grunt')(grunt);
18-
19-
// Only load tasks when they are needed
20-
require('jit-grunt')(grunt, {
21-
ngtemplates: 'grunt-angular-templates'
22-
});
23-
24-
var config = {
25-
pkg: grunt.file.readJSON('package.json'),
26-
env: process.env
27-
};
28-
29-
grunt.util._.extend(config, loadConfig('./grunt-tasks/options/'));
30-
grunt.initConfig(config);
31-
};
17+
grunt.loadTasks('grunt-tasks');
18+
19+
require('time-grunt')(grunt);
20+
21+
// Only load tasks when they are needed
22+
require('jit-grunt')(grunt, {
23+
ngtemplates: 'grunt-angular-templates'
24+
});
25+
26+
var config = {
27+
pkg: grunt.file.readJSON('package.json'),
28+
env: process.env
29+
};
30+
31+
grunt.util._.extend(config, loadConfig('./grunt-tasks/options/'));
32+
grunt.initConfig(config);
33+
};

grunt-tasks/assets_production.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = function(grunt) {
2-
grunt.registerTask('assets:production',
3-
[
4-
'cssmin:plugin',
5-
'uglify:plugin'
6-
]);
2+
grunt.registerTask('assets:production',
3+
[
4+
'cssmin:plugin',
5+
'uglify:plugin'
6+
]);
77
};

grunt-tasks/options/cssmin.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = {
2-
options: {
3-
shorthandCompacting: false
4-
},
5-
plugin: {
6-
files: {
7-
'dist/jquery.tagsinput-revisited.min.css': ['src/jquery.tagsinput-revisited.css']
8-
}
9-
}
2+
options: {
3+
shorthandCompacting: false
4+
},
5+
plugin: {
6+
files: {
7+
'dist/jquery.tagsinput-revisited.min.css': ['src/jquery.tagsinput-revisited.css']
8+
}
9+
}
1010
};

grunt-tasks/options/uglify.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = {
2-
options: {
3-
mangle: true
4-
},
5-
plugin: {
6-
files: {
7-
'dist/jquery.tagsinput-revisited.min.js': ['src/jquery.tagsinput-revisited.js']
8-
}
9-
}
2+
options: {
3+
mangle: true
4+
},
5+
plugin: {
6+
files: {
7+
'dist/jquery.tagsinput-revisited.min.js': ['src/jquery.tagsinput-revisited.js']
8+
}
9+
}
1010
};

src/jquery.tagsinput-revisited.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@
269269
$(obj).val(tagslist.join(delimiter[id]));
270270
};
271271

272-
// TODO: verify
273272
$.fn.tagsInput.importTags = function(obj, val) {
274273
$(obj).val('');
275274

0 commit comments

Comments
 (0)