Skip to content
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

Chaining and flags #67

Merged
merged 4 commits into from May 27, 2012
Merged

Chaining and flags #67

merged 4 commits into from May 27, 2012

Conversation

domenic
Copy link
Contributor

@domenic domenic commented May 27, 2012

New utility transferFlags replaces getAllFlags. Will be useful for chaijs/chai-as-promised#5 and is used in fixing #66.

New utility addChainableMethod. Encapsulates the transfer of prototype properties and flags onto new function objects, which are returned from getters... yeah, you know. It's basically the pattern we often do, except using manual proto-property and flag transfer instead of __proto__.

Used addChainableMethod on a/an and includes/contains, which (after a browser build) makes the expect and assert tests pass again in IE9/IE10.

Please code review! :)

Uses `transferFlags`, and will be used for Chai's `a`/`an` and `includes`/`contains`.
Expect and assert tests now pass in IE9, IE10.
logicalparadox added a commit that referenced this pull request May 27, 2012
@logicalparadox logicalparadox merged commit eb6453a into master May 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants