From 5adf04a73c135dc729b9d9889bc963b45a9fc471 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Tue, 8 Sep 2015 02:33:43 +0300 Subject: [PATCH] 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 --- Gruntfile.js | 2 +- src/data/var/acceptData.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 59583c5a6..50a662cba 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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" ] ); }; diff --git a/src/data/var/acceptData.js b/src/data/var/acceptData.js index 6a1e5021b..6e15af127 100644 --- a/src/data/var/acceptData.js +++ b/src/data/var/acceptData.js @@ -4,6 +4,7 @@ define( function() { * Determines whether an object can have data */ return function( owner ) { + // Accepts only: // - Node // - Node.ELEMENT_NODE