-
Notifications
You must be signed in to change notification settings - Fork 0
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
why getPathsForKey removed in production #171
Comments
That function should only be used by dev logging.
…Sent from my iPhone
On Jun 9, 2018, at 9:29 AM, Julian ***@***.***> wrote:
why is this function removed in production code?
https://github.com/canjs/can-view-scope/blob/master/can-view-scope.js#L431
i got an error if i make a build.
i am not sure. but maybe this is related to ***@***.***
i have a <x-login app:from="scope.vm"></x-login> and can tries to fetch vm with the function getPathsForKey. in production the functions is emtpy so i got this error.
steal.production.js:11 Potentially unhandled rejection [4] TypeError: Cannot read property 'vm' of undefined
at Scope.hasKey (http://localhost:8080/dist/bundles/medicalpad/index.js:10858:30)
at Object.hasKey (http://localhost:8080/dist/bundles/medicalpad/index.js:3694:31)
at objHasKeyAtIndex (http://localhost:8080/dist/bundles/medicalpad/index.js:9855:89)
at Object.read (http://localhost:8080/dist/bundles/medicalpad/index.js:9895:28)
at Scope.read (http://localhost:8080/dist/bundles/medicalpad/index.js:10671:47)
at ScopeKeyData.read (http://localhost:8080/dist/bundles/medicalpad/index.js:10525:39)
at Observation.onBound (http://localhost:8080/dist/bundles/medicalpad/index.js:6756:40)
at KeyTree.add (http://localhost:8080/dist/bundles/medicalpad/index.js:6399:40)
at Observation.on (http://localhost:8080/dist/bundles/medicalpad/index.js:6568:27)
at Object.eval [as onValue] (http://localhost:8080/dist/bundles/medicalpad/index.js:3122:31)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
yeah, but it gets called from https://github.com/canjs/can-view-scope/blob/master/can-view-scope.js#L539 |
Why does that get called? Can you create a test of a template that would call that? |
here is a demo https://github.com/pYr0x/view-scope-bug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why is this function removed in production code?
https://github.com/canjs/can-view-scope/blob/master/can-view-scope.js#L431
i got an error if i make a build.
i am not sure. but maybe this is related to donejs/autorender@720af84
i have a
<x-login app:from="scope.vm"></x-login>
and can tries to fetchvm
with the functiongetPathsForKey
. in production the functions is emtpy so i got this error.cc @phillipskevin
The text was updated successfully, but these errors were encountered: