starting lint

This commit is contained in:
Peter Cottle 2012-12-12 10:32:20 -08:00
parent e876ad6109
commit a1a84d9bfb
3 changed files with 1658 additions and 1657 deletions

File diff suppressed because it is too large Load diff

View file

@ -45,12 +45,13 @@ module.exports = function(grunt) {
_: true, _: true,
Backbone: true, Backbone: true,
'$': true, '$': true,
Raphael: true,
require: true, require: true,
define: true, console: true,
requirejs: true,
describe: true, describe: true,
expect: true, expect: true,
it: true it: true,
exports: true
} }
} }
}); });
@ -58,6 +59,6 @@ module.exports = function(grunt) {
//grunt.loadNpmTasks('grunt-jasmine-node'); //grunt.loadNpmTasks('grunt-jasmine-node');
// Default task. // Default task.
grunt.registerTask('default', 'lint jasmine_node'); grunt.registerTask('default', 'lint compliment'); //jasmine_node');
}; };

View file

@ -788,7 +788,7 @@ var VisEdge = VisBase.extend({
}, },
validateAtInit: function() { validateAtInit: function() {
required = ['tail', 'head']; var required = ['tail', 'head'];
_.each(required, function(key) { _.each(required, function(key) {
if (!this.get(key)) { if (!this.get(key)) {
throw new Error(key + ' is required!'); throw new Error(key + ' is required!');