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,
Backbone: true,
'$': true,
Raphael: true,
require: true,
define: true,
requirejs: true,
console: true,
describe: true,
expect: true,
it: true
it: true,
exports: true
}
}
});
@ -58,6 +59,6 @@ module.exports = function(grunt) {
//grunt.loadNpmTasks('grunt-jasmine-node');
// 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() {
required = ['tail', 'head'];
var required = ['tail', 'head'];
_.each(required, function(key) {
if (!this.get(key)) {
throw new Error(key + ' is required!');