Build: put back "lint" command to the "dev" list

Also fix lint error in `data` module.

It seems this command was removed from the list during merge
This commit is contained in:
Oleg Gaidarenko
2015-09-08 02:33:43 +03:00
parent 224271982e
commit 5adf04a73c
2 changed files with 2 additions and 1 deletions

View File

@@ -182,7 +182,7 @@ module.exports = function( grunt ) {
grunt.registerTask( "test", [ "test_fast", "promises_aplus_tests" ] );
// Short list as a high frequency watch task
grunt.registerTask( "dev", [ "build:*:*", "uglify", "remove_map_comment", "dist:*" ] );
grunt.registerTask( "dev", [ "build:*:*", "lint", "uglify", "remove_map_comment", "dist:*" ] );
grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] );
};

View File

@@ -4,6 +4,7 @@ define( function() {
* Determines whether an object can have data
*/
return function( owner ) {
// Accepts only:
// - Node
// - Node.ELEMENT_NODE