]> source.dussan.org Git - jquery.git/commit
Core: Make jQuery objects iterable
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 1 Jun 2015 21:25:38 +0000 (23:25 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Sat, 13 Jun 2015 21:31:27 +0000 (23:31 +0200)
commit2fa3bac7eb2021361a1d0c498c278df812ec48b9
treecd425cda15a3a796cda7aa6f7a402487cd6562da
parenta022da70568119688445708970bec1346c9d4217
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"
    }

(partially cherry-picked from bb026fc12c3c2ad37f47f0919e484bddcdc3d291)

Fixes gh-1693
src/core.js
test/.jshintrc
test/unit/core.js