When this.get('name') is used in a computed observable calling that computed observable results in the error this.get is not a function.
Example: https://dojo.telerik.com/aXupaPog
When this.get('name') is used in a computed observable calling that computed observable results in the error this.get is not a function.
Example: https://dojo.telerik.com/aXupaPog
Copyright © 2021 Jogjafile Inc.
In Javascript
thisis referes to diffrent objects depending on how a function is called. In your example you are receiving function from view model and then execute it.In that case
thisinside function is referes to 'Window' object. To avoid this error you should call function as viewModel member.or manually set
thisto viewModel via bind/apply/call methods.