diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2015-06-01 23:25:38 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2015-06-13 23:14:36 +0200 |
commit | bb026fc12c3c2ad37f47f0919e484bddcdc3d291 (patch) | |
tree | 7ba8975dcfd6c912f8ecb71761648ad4a38efe9b /build | |
parent | 9c8a3ecdc46156afd8f93aa44b6e6aea7c52c049 (diff) | |
download | jquery-bb026fc12c3c2ad37f47f0919e484bddcdc3d291.tar.gz jquery-bb026fc12c3c2ad37f47f0919e484bddcdc3d291.zip |
Core: Make jQuery objects iterable
Make iterating over jQuery objects possible using ES 2015 for-of:
for ( node of $( "<div id=narwhal>" ) ) {
console.log( node.id ); // "narwhal"
}
Fixes gh-1693
Diffstat (limited to 'build')
-rw-r--r-- | build/tasks/node_smoke_tests.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/tasks/node_smoke_tests.js b/build/tasks/node_smoke_tests.js index 5c23dae2b..9334516d9 100644 --- a/build/tasks/node_smoke_tests.js +++ b/build/tasks/node_smoke_tests.js @@ -5,7 +5,7 @@ module.exports = function( grunt ) { var fs = require( "fs" ), spawnTest = require( "./lib/spawn_test.js" ), testsDir = "./test/node_smoke_tests/", - nodeSmokeTests = [ "jsdom" ]; + nodeSmokeTests = [ "jsdom", "babel:nodeSmokeTests" ]; // Fire up all tests defined in test/node_smoke_tests/*.js in spawned sub-processes. // All the files under test/node_smoke_tests/*.js are supposed to exit with 0 code |