Skip to content

Object.deliverChangeRecords not available #13

Description

@frostney

To deliver the change records, this polyfill uses the following API:

var obj = {};
var changeHandler = function(changes) {
  console.log(changes);
};

Object.observe(obj, changeHandler);
obj.test = 5;

Object.getNotifier(obj).deliverChangeRecords();

In regards to the specification (http://wiki.ecmascript.org/doku.php?id=harmony:observe_public_api) and with the latest Chrome stable (36), delivering the change records actually works like this:

var obj = {};
var changeHandler = function(changes) {
  console.log(changes);
};

Object.observe(obj, changeHandler);
obj.test = 5;

Object.deliverChangeRecords(changeHandler);

Is there any chance that Object.deliverChangeRecords will make it into this polyfill?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions