Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
Pie
Posts: 65225
95
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