Profile_bird

Hey there! kangax is using Twitter.

Twitter is a free service that lets you keep in touch with people through the exchange of quick, frequent answers to one simple question: What's happening? Join today to start receiving kangax's tweets.

Already using Twitter
from your phone? Click here.

kangax

  1. Found out that Safari <4 doesn't support canvas' toDataURL (after using it to implement one of the core functionality of our app). Damn it.
  2. @tobie Nope. You must be confusing it with `eval` and `arguments` (neither can be Identifiers in assignment/declaration/formal params/catch)
  3. @diegoperini I think `void+0` looks more confusing. Why not just have `undefined` local variable? It's clear, fast and compresses well.
  4. @ELV1S I hope you're not relying on function decompilation ;) http://bit.ly/Dy9Au
  5. IE's XSS filter can itself be exploited to perform XSS attacks against otherwise safe web sites. http://bit.ly/8iQgNV Great...
  6. Nice presentation on Javascript performance by @jaffathecake http://bit.ly/17MSZ8
  7. IE9 ditches COM as an object model for host objects... What a relief.
  8. Looks like Opera 10.10 RC3 fixed whatever was affecting Sputniktests and is now leading with score of 176 (http://bit.ly/3yYhfE)
  9. @ELV1S `slice` seems to be even faster http://gist.github.com/237930
  10. @WebReflection Sure, just not when you compare it to "checked" property of an element ;)
  11. Remembered once again that Crockford was right about JS books quality when looking at one in B&N today — http://bit.ly/4AChZW
  12. Apparently `x++` and `x += 1` are NOT functionally identical; former does ToNumber coercion, latter one doesn't. Who would have thought...
  13. Filed few optimizations for Closure Compiler http://bit.ly/4j4U0q. Still need to file a bug with func. expressions turned into declarations.
  14. @miksago Also remember that it's safer to do `Object.prototype.hasOwnProperty.call(obj, prop)`rather than `obj.hasOwnProperty(prop)`
  15. @miksago `hasOwnProperty` is not supported in at least Safari <= 2.0 and IE5. IE5 is pretty much extinct, but Safari 2.0 — not so much... ;)
  16. @jdalton Here are few that you might be missing on mac — http://twitpic.com/pdfg0
  17. @jdalton Err... nevermind about Safari
  18. @jdalton Still missing Safari 2.x; Also, Opera 10.10b1 is out ;)
  19. And again, Opera 10.10 spits out some bogus stack trace. This time with: `alert(document.forms.length)` (cc @fearphage, @dstorey)
  20. Correct Array#push/pop implementation is not that trivial — http://bit.ly/1GxbhV (many browsers get it wrong too)