mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
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
This commit is contained in:
12
Gruntfile.js
12
Gruntfile.js
@@ -30,6 +30,18 @@ module.exports = function( grunt ) {
|
||||
cache: "build/.sizecache.json"
|
||||
}
|
||||
},
|
||||
babel: {
|
||||
options: {
|
||||
sourceMap: "inline",
|
||||
retainLines: true
|
||||
},
|
||||
nodeSmokeTests: {
|
||||
files: {
|
||||
"test/node_smoke_tests/lib/ensure_iterability.js":
|
||||
"test/node_smoke_tests/lib/ensure_iterability_es6.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
build: {
|
||||
all: {
|
||||
dest: "dist/jquery.js",
|
||||
|
||||
Reference in New Issue
Block a user