Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kangax
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
Moving from Wordpress to Github Pages
(perfectionkills.com)
3 points
by
kangax
13y ago
|
0 comments
62.
▲
by
kangax
13y ago
http://perfectionkills.com/global-eval-what-are-the-options/...
63.
▲
by
kangax
13y ago
Exactly. I'm sure the reason he wasn't being arrested in the beginning is not solely because of race but also due to his _attire_ and _calm behavior_. Cops are used to street criminals looking shady, behaving strangely; not just b
64.
▲
by
kangax
13y ago
It would be fun to build this as a webapp in JS + canvas/SVG.
65.
▲
by
kangax
13y ago
Amen. Recent Baldur's Gate Enhanced Edition (on iPad) was enjoyable trip down the memory lane.
66.
▲
by
kangax
13y ago
Interesting. Will check it out. Found Javascript adaptation at http://www.rogerandwendy.com/roger/dynadraw
67.
▲
by
kangax
13y ago
Nice! Line thickness based on distance between points seems perfect for replicating ink. Good idea.
68.
▲
by
kangax
13y ago
Thanks! Yeah, I messed it up (used 270 degrees for some reason..). Updated to your version.
69.
▲
Becoming a superhero
(perfectionkills.com)
1 points
by
kangax
13y ago
|
0 comments
70.
▲
by
kangax
14y ago
I glanced at the code quickly and noticed `addEventListener` without `attachEvent` fallback. So that will fail in at least IE8 and below. Not sure about other things, but I'm guessing you never tried it in IE8?
71.
▲
by
kangax
14y ago
Looks nice. Are you planning to support IE<9?
72.
▲
by
kangax
14y ago
As an author of fabric.js, I'm glad to see you guys found it useful! Just wanted to mention that fabric's requirement for old Node.js is definitely something we can't wait to get rid of. As soon as we find a replacement to "o3-xml" package,
73.
▲
by
kangax
17y ago
The explanation of why ++[] throws error is actually incorrect. This has nothing to do with "existence" of [] (I'm not even sure what existence could mean here). Rather, it's the way ++ operator works. ++ requires its operand to evaluate to
74.
▲
by
kangax
17y ago
Actually, deleting items from array is usually done with `Array#splice`. Using `delete` operator only deletes a property, but doesn't update Array object's `length`, and it is this `length` that matters when iterating over an array (with `f
75.
▲
by
kangax
17y ago
First of all, thanks for kind words. I'm glad you found this post useful. I think I should have given more attention to use cases of `delete` before delving into all the details of how it works :) My bad. I wouldn't say using `delete` is al
76.
▲
by
kangax
17y ago
It looks like you're using some older version of Prototype. `getStyle` should return computed style of an element (there are bugs but they are more like edge cases). If something doesn't work, file a bug (with a reproducible test case, of c
77.
▲
by
kangax
17y ago
Yes, there's clearly an ambiguity in section 2 with regards to internal properties. Looking at "Internal Properties and Methods" section (8.6.2), you can see that specification makes it pretty clear that, for example, host objects' behavior
78.
▲
by
kangax
17y ago
They are talking about any `RegExp` object (technically, any object with "RegExp" [[Class]])
79.
▲
by
kangax
17y ago
> Which means that it's debatable whether making regexps callable is permitted by the spec [...] Unfortunately (or fortunately, depending on how you look at it) it is perfectly permitted in at least ES3. See my comment on webkit's bugtr