Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
5Activity
0 of .
Results for:
No results containing your search query
P. 1
Advanced Javascript

Advanced Javascript

Ratings: (0)|Views: 121 |Likes:
Published by anon_72538782

More info:

Categories:Types, Research, Science
Published by: anon_72538782 on Dec 13, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

01/02/2013

pdf

text

original

 
Advanced JavaScript
dev-mag.com
 
Advanced JavaScriptCopyright 2010 Vision Mediaiv
Table of Contents
1. Closures, Scope & Context ................................................................................................ 11. Overview ..................................................................................................................... 12. The Var Keyword ........................................................................................................ 13. Functions ..................................................................................................................... 43.1. Function Literal ................................................................................................. 43.2. Self Reference With Arguments.callee ............................................................. 63.3. Function Arity .................................................................................................... 73.4. Function Bodies ................................................................................................ 83.5. Function Parameters ......................................................................................... 94. Methods & Receivers ................................................................................................ 114.1. Method Portability & Gotchas ......................................................................... 114.2. Altering Execution Context .............................................................................. 122. Prototypal Inheritance ...................................................................................................... 151. Overview ................................................................................................................... 152. Class Based .............................................................................................................. 153. Prototype Based ....................................................................................................... 163.1. Implementing Inheritance ................................................................................ 173.2. Asserting Object Relationships ....................................................................... 173.3. Constructor Gotchas ....................................................................................... 184. Creating JavaScript Classes ..................................................................................... 194.1. Implementation ................................................................................................ 194.2. Usage Examples ............................................................................................. 233. Advanced Meta-programming Techniques ....................................................................... 261. Overview ................................................................................................................... 262. Getting Started .......................................................................................................... 263. Defining Route Functions .......................................................................................... 273.1. Route Function Generators ............................................................................. 283.2. Calling Routes ................................................................................................ 294. Dynamic Route Regular Expressions ....................................................................... 305. Matching Routes ....................................................................................................... 316. Complete Source ...................................................................................................... 324. Behavior Driven Development with JSpec ....................................................................... 341. Overview ................................................................................................................... 342. Installation ................................................................................................................. 34
 
Advanced JavaScriptCopyright 2010 Vision Mediav3. Creating A Project Template ..................................................................................... 353.1. Writing Specifications ...................................................................................... 363.2. Running Specifications .................................................................................... 383.3. Full Test Coverage ......................................................................................... 393.4. Additional Information ..................................................................................... 425. Creating a jQuery Clone .................................................................................................. 431. Overview ................................................................................................................... 432. Laying The Foundation ............................................................................................. 433. Implementing $(“selector”) ........................................................................................ 444. Defining Collection Methods ..................................................................................... 474.1. $.fn.get() .......................................................................................................... 474.2. $.fn.each() ....................................................................................................... 495. Implementing $(element), $([element, …]), and $(Mini) ............................................ 506. Implementing $(function(){}) ...................................................................................... 527. Test Drive .................................................................................................................. 536. Tools Of The Trade ......................................................................................................... 551. Overview ................................................................................................................... 552. Lispy JavaScript With Jasper .................................................................................... 552.1. Example .......................................................................................................... 552.2. More Information ............................................................................................. 563. Mojo Mustache Templates ........................................................................................ 563.1. Example .......................................................................................................... 563.2. More Information ............................................................................................. 574. Vector Graphics With Raphaël ................................................................................. 574.1. More Information ............................................................................................. 575. Underscore.js JavaScript Utilities .............................................................................. 575.1. Example .......................................................................................................... 575.2. More Information ............................................................................................. 586. RightJS Framework ................................................................................................... 586.1. Example .......................................................................................................... 586.2. More Information ............................................................................................. 597. Express Web Framework .......................................................................................... 597.1. Example .......................................................................................................... 597.2. More Information ............................................................................................. 608. JavaScript Extensions Via Ext.js .............................................................................. 608.1. Example .......................................................................................................... 60

Activity (5)

You've already reviewed this. Edit your review.
1 hundred reads
GA Qazi liked this
GA Qazi liked this
GA Qazi liked this
liveclive304393 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->