• Post Reply Bookmark Topic Watch Topic
  • New Topic

[JS] is this the new way of defining function?  RSS feed

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Can anyone please convert it in simple form?

TIA.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is Object Oriented JavaScript.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing "new" about it. A function, defined by a function literal, is assigned to the onBlurChanged property of the prototype of a Javascript class named AutoComplete.

Grab a good Javascript book and learn about functions. Then look up what the prototype property does.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!