Conversation
|
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
There was a problem hiding this comment.
@btford, continuing the discussion from #3138 (comment), get(), contains() and isEmpty() should use hasOwnProperty() (unless the objects passed to them have no prototype).
Even facade/collection.ts uses hasOwnProperty().
E.g. isEmpty() will never return true, if there are properties/functions on the prototype.
There was a problem hiding this comment.
Ah – this is legit. 👍
There was a problem hiding this comment.
xit-ed test - is this still correct? the issue listed above is in the wrong repo
There was a problem hiding this comment.
yes– this behavior needs to be re-thought regardless.
This change is to accomodate the router in Angular 1.x
aa05af5 to
e5a711d
Compare
|
I've removed all but one I'm hoping we can get this in today and then I'll spend the rest of the week improving tests and refactoring. |
|
@IgorMinar gave me the LGTM to merge this with the understanding that I'll follow up with some refactor and cleanup work. Pushing to presubmit 🐈 |
|
@btford I'm re-opening this PR as it had to be reverted (Travis was red) |
|
This PR clearly was not the cause of Travis going red. After reverting this commit, we still see the same failure. @vicb can you re-merge this please? |
Supersedes #3138
I did a bit of cleanup on @shahata's PR. I'm going to let CI for this run, and push it to presubmit if it passes.
@IgorMinar is going to review this, but we should get this in before it gets bitrotten again.