From: Oleg Gaidarenko Date: Mon, 7 Sep 2015 23:33:43 +0000 (+0300) Subject: Build: put back "lint" command to the "dev" list X-Git-Tag: 2.2.0~156 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5adf04a73c135dc729b9d9889bc963b45a9fc471;p=jquery.git 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 --- 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