aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2015-09-08 02:33:43 +0300
committerOleg Gaidarenko <markelog@gmail.com>2015-09-08 02:33:43 +0300
commit5adf04a73c135dc729b9d9889bc963b45a9fc471 (patch)
tree2e90dd83d79e0f6dae232de865b5acfbafde6b0b
parent224271982eb9cd351d7db1b38c740b4e927e6f97 (diff)
downloadjquery-5adf04a73c135dc729b9d9889bc963b45a9fc471.tar.gz
jquery-5adf04a73c135dc729b9d9889bc963b45a9fc471.zip
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
-rw-r--r--Gruntfile.js2
-rw-r--r--src/data/var/acceptData.js1
2 files changed, 2 insertions, 1 deletions
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