Skip to content Skip to sidebar Skip to footer
Showing posts with the label Prototype

Javascript "this" Losing Context In Ie

The following works fine in firefox/safari/chrome, in IE, 'this' appears to be losing conte… Read more Javascript "this" Losing Context In Ie

Extending Object Literal

var x = { name: 'japan', age: 20 } x.prototype.mad = function() { alert('US… Read more Extending Object Literal

Object.prototype In Javascript

I have some JavaScript code that defines a function getElementsByAttribute as follows: Object.proto… Read more Object.prototype In Javascript

Why Is Prototype Function 40x Slower Than The Default Declared Function?

I've played with jsperf.com and found that prototyped function is 40x slower than 'default&… Read more Why Is Prototype Function 40x Slower Than The Default Declared Function?

Javascript Function With Prototype Within Parent Function Prototype

Is this even possible? function foo() { // do stuff } foo.prototype = { // stuff... bar… Read more Javascript Function With Prototype Within Parent Function Prototype

Overriding Array Literal In Javascript

My app (a custom web browser) is injecting code into a page that has a modified Array prototype (sp… Read more Overriding Array Literal In Javascript