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

Javascript Inheritance And Losing The Context Of 'this'

I am using John Resig's Simple JavaScript Inheritance and have run into an issue where I am los… Read more Javascript Inheritance And Losing The Context Of 'this'

Confusing Use Of Commas And Newlines In Variable Assignment Expression Makes Var Look Global

Update: it was really the comma before the that variable assignment which threw me off, not so much… Read more Confusing Use Of Commas And Newlines In Variable Assignment Expression Makes Var Look Global

Javascript Proper Prototypical Inheritance

I've been spending my past couple hours researching prototypical inheritance, but I'm left … Read more Javascript Proper Prototypical Inheritance

Why Are Higher Order Functions Hiding My Es6 Class Properties?

EDIT: I've added updated screenshots (at the end), for further clarification. I'm attemptin… Read more Why Are Higher Order Functions Hiding My Es6 Class Properties?

Javascript Inheritance With Concise Prototype Assignment Syntax

I've defined two javascript classes using this (prototype) approach: function Parent () { t… Read more Javascript Inheritance With Concise Prototype Assignment Syntax

Extending An Array Properly, Keeping The Instance Of Subclass

I've written a class trying to extend the native Javascript Array class with a custom class, le… Read more Extending An Array Properly, Keeping The Instance Of Subclass

Will Javascript Ever Become A 'proper' Class Based Language?

I'm referring to MDN's article on JavaScript's 'future reserved words' (for use… Read more Will Javascript Ever Become A 'proper' Class Based Language?

Can A Child Class Respond To Events Captured By Its Super?

I have a custom class which I am extending for various purposes, and the following code is working … Read more Can A Child Class Respond To Events Captured By Its Super?