ECMAScript 4 Bug Fixes

2007-10-31 Thread John Resig
Hi All - I've just put up a post outlining some of the bug fixes that are coming along in ECMAScript 4 (fixing bugs in ES 3). Comments are greatly appreciated (I'll adjust the post as they come in, as well). http://ejohn.org/blog/bug-fixes-in-javascript-2/ --John

Playing with ECMAScript 4 (Screencast)

2007-11-09 Thread John Resig
Hi All - I just posted a quick screencast demonstrating how to get started with ECMAScript 4 (although, if you're already subscribed to this list, it's probably a good bet that this is well below your skill level). Feedback is appreciated. http://ejohn.org/blog/playing-with-ecmascript-4/

Array Generics and null

2008-03-22 Thread John Resig
Hello all - I wanted to bring up one point for discussion. Based upon Mozilla's implementation of Array generics (and what will, presumably, be standardized here) you can see that typically doing: Array.forEach(null, function(){alert(arguments);}); produces no alerts. However, performing it

Re: ES3.1 Object static methods rationale document

2008-07-17 Thread John Resig
I wanted to bring up some further evidence for the widespread use of an extend() method. Here are the top 5 JavaScript libraries and their associated versions of Object.extend(): == jQuery.js: (jQuery also does deep extend - but that isn't relevant here.) jQuery.extend = jQuery.fn.extend =

Re: ES3.1 Object static methods rationale document

2008-07-18 Thread John Resig
You're prev response seems to have come from the discussion of Object.create. No? We've been discussing the viability of a new Object.extend() method to be introduced in ES3.1. Mozilla has offered a proposal and is looking to implement it in SpiderMonkey. I provided examples of