31.
Event-driven code
• •
Ericsson uses Erlang to Any JS-Object can be a
control their container
telecommunication
• Each module needs to
infrastructure
know very little - it
• In Erlang, modules talk to doesn‘t care how to get
other modules through information
event-passing
• Any number of modules
• Most common modules: can be waiting to receive
DOM elements information back at the
same time without
hanging the browser

40.
Functions
• jQuery.fn is the plugin namespace
• jQuery.fn.myFunction = fn results in $
(..).myFunction()
• In your function, this points to the current
selection, and all arguments are passed
along

41.
Selectors
• The selector can be extended with custom
pseudo selectors
• Simply extend jQuery.expr[quot;:quot;]
• key is your pseudo selector
• value is a function that receives the
element as ﬁrst arg and needs to return a
boolean

42.
Animations
• Add your own properties to animate
(i.e. ,corner‘)
• Extend jQuery.fx.step:
• key is the property name
• value is a function that receives an fx
object