jim-jim-jim / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

Use with(){} in src/base2/JSB/chrome/Rect.js #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you're already rolling with with(this) dice in Rect.js, might as well go
all-in.

Original issue reported on code.google.com by jeresig on 18 Apr 2008 at 9:40

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm. This was supposed to be an enhancement, oops.

Original comment by jeresig on 18 Apr 2008 at 9:41

GoogleCodeExporter commented 9 years ago
You're right. I got so hyped by the "with" is evil argument that I forgot that 
it has
legitimate uses (like this example). Will fix. :)

Original comment by dean.edw...@gmail.com on 18 Apr 2008 at 11:43

GoogleCodeExporter commented 9 years ago

Original comment by dean.edw...@gmail.com on 18 Apr 2008 at 11:44

GoogleCodeExporter commented 9 years ago

Original comment by dean.edw...@gmail.com on 27 May 2008 at 12:20

GoogleCodeExporter commented 9 years ago
Fixed in trunk:

http://base2.googlecode.com/svn/trunk/lib/

Original comment by dean.edw...@gmail.com on 27 May 2008 at 3:27