-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge v2 draft branch in master fr v6 release #189
base: master
Are you sure you want to change the base?
Conversation
This is a proposal for a new interface for property change observers, intended to subvert property change listeners.
This change makes it possible for a deprecated shim of the old property change listener system to coexist using the new property change observer system.
Retain last seen value, precompute dispatch method.
- Allow a thunk to be shared by instances if the prototype is made observable. - Fix a bug where observers on multiple properties of the same object would interfere. - Test coverage for the working edge case of an object with a setter but no getter.
This adds support for map, range, and array observers, with a design coherent with the new property observers.
Such that all specs pass.
Based in changes to the iterator specification slated for ECMAScript 6, but extended to pass indicies through on iteration objects. This reimplementation largely avoids using closures for iterator instances. Methods of iterators that return new iterators are now conjugated differently, to avoid colliding with the variant that will produce a plain array. For example, `zipIterator` is now `iterateZip`. I have removed the type checks for callbacks. Any object implementing `call` will suffice. :warning: This commit introduces backward incompatible changes and should await a major version.
Also, factor this facility out of `filter`, so that recounting is an orthogonal concern. Recounting enforces sequential indexes on a wrapped iterator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, this is a big effort. Are we attempted to reconcile v1 and v2 branches? Is there concurrent work on Montage and FRB to use the v2 observers?
@@ -9,27 +9,1743 @@ This package contains JavaScript implementations of common data | |||
structures with idiomatic iterfaces, including extensions for Array and | |||
Object. | |||
|
|||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge conflicts here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I will fix conflict in README.
|
No description provided.