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

Javavscript Change Sub-class Property On Instantiation

if I have myClass.prototype.subClass= { foo:false } when I create a new instance on an object how… Read more Javavscript Change Sub-class Property On Instantiation

Is This Following The Strategy Design Pattern

Me and my colleague have a disagreement about if this follows the strategy pattern or not. We have … Read more Is This Following The Strategy Design Pattern

Google Closure Bind / Resolve Issues With The This Keyword

What is the Google Closure's solution for resolving the issues with the this keyword in JavaScr… Read more Google Closure Bind / Resolve Issues With The This Keyword

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)

Javascript: Attaching Oop Methods To Events And The 'this' Keyword

I am new to OOP Javascript and am having trouble with the this keyword and events. What I'm try… Read more Javascript: Attaching Oop Methods To Events And The 'this' Keyword

Jquery Proxy Passing Parameters

How can you pass a string via proxy when binding event handlers? I want to pass a data attribute th… Read more Jquery Proxy Passing Parameters

Sorting Objects By Property Values

How to implement the following scenario using Javascript only: Create a car object with properties… Read more Sorting Objects By Property Values

Singleton Pattern And Abstraction In Js

Although the example below exploits ExtJS, one can easily extrapolate to another framework. I am a… Read more Singleton Pattern And Abstraction In Js