23.04.2013 Views

javascript

javascript

javascript

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

■ INDEX<br />

470<br />

chaining prototypes, 163<br />

Chocolate() constructor, 152<br />

classical inheritance, 149<br />

clone(), 171–172<br />

cloneMembers(), 174, 176<br />

cloning members, 174<br />

Coffee() constructor, 151<br />

console.dir(), 168<br />

definition of, 149<br />

determining which type(s) an object is an<br />

instance of, 156<br />

duplicating a constructor, 169<br />

emulate(), 173–174<br />

extend(), 166–169, 171<br />

inherited members as shared among<br />

instances, 158<br />

instanceof operator, 157<br />

merge(), 176<br />

MintChocolateChunk() constructor, 154<br />

mixins, 176<br />

modifying new and past instances of a type,<br />

160<br />

Object.create(), 171, 173<br />

prototypal inheritance, 171<br />

Proxy(), 166–167, 171<br />

querying a type’s parent, 167<br />

VanillaBean() constructor, 149<br />

See also members; objects<br />

innerHTML, 428–429<br />

insertRule(), 328–333, 340<br />

instanceof operator, 157<br />

interfaces<br />

Attr interface, 257<br />

CharacterData interface, 257<br />

definition of, 256<br />

Document interface, 257<br />

Element interface, 257<br />

HTMLDivElement interface, 257<br />

HTMLElement interface, 257<br />

list of, 256<br />

Node interface, 257<br />

Text interface, 257<br />

See also objects<br />

Internet Explorer<br />

addEventListener() not implemented, 348<br />

attachEvent(), 348<br />

converting a NodeList to an array, 273<br />

events and, 347<br />

window.event, 347<br />

See also Browser Object Model (BOM);<br />

events; nodes; objects<br />

isArray(), 201, 204–205<br />

item(), 261<br />

■ J<br />

jersey code example, 107<br />

join(), 243<br />

JSON<br />

comparing JSON to JavaScript object and<br />

array literals, 440<br />

description of, 439<br />

eval(), 439<br />

json2.js, 440<br />

JSON-P, 445<br />

padding JSON, 445<br />

padJSON(), 445<br />

parseJSON(), 441, 444, 447<br />

parseJSONP(), 446–448<br />

parsing, 439<br />

See also Ajax<br />

■ K<br />

keywords<br />

ECMAScript and, 8<br />

else, 100<br />

false, 97<br />

function, 20<br />

if, 98<br />

new, 146<br />

reserved keywords, list of, 7<br />

return, 196<br />

true, 97<br />

var, 6<br />

kmLeftToLive(), 98<br />

■ L<br />

lastChild, 270<br />

lastIndexOf(), 36

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!