• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why is the 'this' keyword being passed as a second argument in a function? (knockoutJS)  RSS feed

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this knockout.js code and want to know why the "this" keyword is being passed in the "fullName" function:



Thanks.
 
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maintains scope, read the "Managing this" section http://knockoutjs.com/documentation/computedObservables.html
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!