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

Why My __proto__ Reference Shows Wrong Name In Console?

My proto reference of 'mike' instance points to 'Student' but as its name shows &#… Read more Why My __proto__ Reference Shows Wrong Name In Console?

Can't Use String#trim As A Callback For Array#map

For some reason I can't use String.prototype.trim.call as a callback for array methods, such as… Read more Can't Use String#trim As A Callback For Array#map

Javascript Oop - Lost This In Asynchronous Callback

I have problem which still bothers me on js oop - I'm sure I'm doing it bad, but I cant get… Read more Javascript Oop - Lost This In Asynchronous Callback

How Can I Add Properties To An Object In Ie6?

I've got a particularly tricky problem using AJAX, which works fine in IE7 and Firefox, but not… Read more How Can I Add Properties To An Object In Ie6?

Javascript Oop: Objects Change Their Prototype (for All Other Objects Using The Same Prototype)

function NamedRoundedBlock(){ var name = this.makeFeild('name'); name.className = &… Read more Javascript Oop: Objects Change Their Prototype (for All Other Objects Using The Same Prototype)

Extending Knockout Viewmodels With Prototype

If a viewmodel is already defined, either manually or automatically with mapping plugin, is there a… Read more Extending Knockout Viewmodels With Prototype

Dataview And Prototypical Inheritance

From what I've gleamed online, one way to extend an object in JavaScript is by first cloning it… Read more Dataview And Prototypical Inheritance

For-in Loop Vs In-operator

I consider myself a JS veteran but just now for the first time I have realised that the for ... in … Read more For-in Loop Vs In-operator