{"push_id":1227239575,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"96e94b3b6cc26aae190aa0a136037d729e3afa21","before":"760ad49d1c9113f5a7b33831056c2ff6bbd78d5a","commits":[{"sha":"a2fc65b9798d1a5d0dcb43b5c50483640f5187c5","author":{"name":"Lee Byron","email":"e62162cf4d95df85defedbb6fc7531efd473b77b@leebyron.com"},"message":"Implements the JavaScript Iterable protocol.\n\nThis introduces new methods related to Iterators on Backbone.Collection to mirror those found on Array: `values`, `keys`, `entries`, and `@@iterator`. Each of these methods will return a JavaScript Iterator, which has a `next` method, yielding the models or ids of models contained in the Collection.\n\nThe CollectionIterator is careful to use the `at()` and `modelId()` methods on the host collection rather than direct access to the `models` property, which should ensure it is resilient to creative subclassing of Backbone.Collection and future feature addition.\n\nThe [`@@iterator`](http://www.ecma-international.org/ecma-262/6.0/#sec-well-known-symbols) method is defined using `Symbol.iterator` if it exists in the JavaScript runtime (modern browsers/node.js) and falls back to the string `\"@@iterator\"` which was popularized by older versions of Firefox and has become the standard fallback behavior for other third-party libraries. This ensures that Backbone can still be used across all browsers, even with use of these new methods.\n\nSupporting Iterable allows better integration between Backbone and the most recent additions to the JavaScript language, including `for of` loops and data-collection constructor functions, as well as better integration with other third-party libraries that accept Iterables instead of only Arrays.\n\nFixes #3954","distinct":true,"url":"https://api.github.com/repos/rlugojr/backbone/commits/a2fc65b9798d1a5d0dcb43b5c50483640f5187c5"},{"sha":"96e94b3b6cc26aae190aa0a136037d729e3afa21","author":{"name":"Justin Ridgewell","email":"868578aade1dd02cdb2a21ec3f82194875834fe0@users.noreply.github.com"},"message":"Merge pull request #4061 from leebyron/iterable\n\nImplements the JavaScript Iterable protocol.","distinct":true,"url":"https://api.github.com/repos/rlugojr/backbone/commits/96e94b3b6cc26aae190aa0a136037d729e3afa21"}]}
{"actor":{"display_login":"rlugojr"}}