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

Use hasOwnProperty to check for bucket existence #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lawnsea
Copy link
Contributor

@lawnsea lawnsea commented Sep 4, 2013

If a mapped observable has a value that is a property of Object.prototype,
findBucket returns that property's value instead of a simpleObjectLookup
instance.

Fix #124

If a mapped observable has a value that is a property of `Object.prototype`,
`findBucket` returns that property's value instead of a `simpleObjectLookup`
instance.

Fix SteveSanderson#124
@brigand
Copy link
Collaborator

brigand commented Sep 16, 2013

Nice catch. Merged into brigand/knockout.mapping

It'll likely get merged here when knockout/1099 is closed.

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.

JSON string value of "constructor" throws exception on .fromJS call
2 participants