-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[query-params-new] Don't watch default model params obj
Subtle bug fix with query-params-new, whereby if you specified queryParams on your ObjectController but didn't provide you own model hook, the Ember-supplied model hook, which returns the params object as the model in certain cases, was resulting in that params object being observed, when definitely should not be, so we make a copy of the POJO before returning it as the model Fixes #4155
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters