It’s a fine line between quackery and genius: Object Versus Process. I’m not sure if I agree with the author’s conclusions, but I did enjoy reading his paper.
Tag Archives: object
Cloning a JavaScript object with jQuery
Reply
Today I heard from John Resig on StackOverflow about how to clone objects using jQuery:
// Shallow copy var newObject = jQuery.extend({}, oldObject); // Deep copy var newObject = jQuery.extend(true, {}, oldObject);
How does “this” keyword work within a JavaScript object literal?
Found this article today, How does “this” keyword work within a JavaScript object literal?. It describes various ways of calling a function in javascript, and explains what the ‘this’ context will be in each case.