From 7d11c038ec567f665fe9e74a1a5142f74d92ec2f Mon Sep 17 00:00:00 2001 From: "Scott J. Miles" Date: Fri, 4 Oct 2013 11:56:57 -0700 Subject: [PATCH] provide the mutation records to onMutation listeners --- src/instance/base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instance/base.js b/src/instance/base.js index 957d52f3d5..a7d01b47da 100644 --- a/src/instance/base.js +++ b/src/instance/base.js @@ -172,8 +172,8 @@ } }, onMutation: function(node, listener) { - var observer = new MutationObserver(function() { - listener.call(this, observer); + var observer = new MutationObserver(function(mutations) { + listener.call(this, observer, mutations); observer.disconnect(); }.bind(this)); observer.observe(node, {childList: true, subtree: true});