How to de-anonymize your anonymous functions
First of all, de-anonymized functions are called named functions and they look a lot like “regular” functions (in fact, they are).
First of all, de-anonymized functions are called named functions and they look a lot like “regular” functions (in fact, they are).
I wrote about undo before and I pushed it farther. What about an undo/redo system? I extended the v.01 of the undo and I now handle undo and redo in the same object. Annoucing redo in jskata.undo I made a new version of jskata.undo still hosted on GitHub. If you look closer, it is now [...]
There’s a common error that happens quite a lot on IE only and never on Firefox. You search it, you check all your variables, you comment your code to the bare minimum but you can never find it. Stop looking! Here’s the answer. You probably just forgot a comma (,) at the end of a [...]
I really like undos. If I could undo that that last beer… Unfortunately, I can’t. But, I can offer undo to users of my application.
Sometimes, it feels to me that javascript was invented for the only purpose of writing calendars to select a date.
If I look at my stats, a lot of people are wondering how to write a singleton class. I already wrote about it before but my old solution exposed the instance of the class so more than one instance could be created thus making it not completly a singleton class.
In short, you can use private variables when you return another scope when declaring a class.
This post is an update from the old post. A lot of things changed since it was written and the information in the old one is a bit outdated.
There’s something bugging me with javascript for loop : the extra work to loop though all elements of an array. Suppose I want to alert each element of an array, there are three ways of doing it.
Everytime that I work on a new project, I’m always unsure about which way to execute javascript on page load.