Skip to content

Commit

Permalink
v0.2.6; fixes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxArt2501 committed Oct 17, 2015
1 parent c7ea215 commit 1441482
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "object.observe",
"version": "0.2.5",
"version": "0.2.6",
"homepage": "https://github.com/MaxArt2501/object-observe",
"authors": [
"Massimo Artizzu <maxart.x@gmail.com>"
Expand Down
5 changes: 3 additions & 2 deletions dist/object-observe-lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,10 @@ Object.observe || (function(O, A, root, _undefined) {
* @param {Handler} handler
*/
deliverHandlerRecords = function(hdata, handler) {
if (hdata.changeRecords.length) {
handler(hdata.changeRecords);
var records = hdata.changeRecords;
if (records.length) {
hdata.changeRecords = [];
handler(records);
}
},

Expand Down
2 changes: 1 addition & 1 deletion dist/object-observe-lite.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1441482

Please sign in to comment.