-
Notifications
You must be signed in to change notification settings - Fork 11
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
_.where
doesn't work when items in array are observable
#10
Comments
Hey kamranayub. I love your library, but was struggling with the where statement until i found this issue. Is this bug fixed in the latest build? I don't want to change the underscore library because i use nuget to pull the latest updates, and will forget about this. Is there another method achieving this:
|
I'd like to find a way while avoiding duplicating the Underscore code, but worse comes to worse, you can just declare this after loading Underscore and my lib:
|
Thx for your response. Can i use your code in the html with knockout like this?
|
Yes, it should work |
The newest version resolves this issue :) |
Just pushed a fix that also supports arrays where the items are view models themselves and contain observables. |
From Google Groups:
UKO should make this compatible by using
ko.util.unwrapObservable
.The text was updated successfully, but these errors were encountered: