Developer at Novarad

I've been working on a 2D HTML5 game engine called Psykick2D.

10h
comment Making use of what jQuery Collision returns?
Looks like it's supposed to give you exactly that: the objects which it collides with. So then you just iterate through the collisions and work with each div like you would any other element.
13h
comment Why constructor property of object points to parent's constructor instead of F in extend function if constructor property is not overridden
@HMR Setting child.prototype = parent.prototype wouldn't prevent you from mutating child.prototype. It just means that mutating it would mutate the parent. You're right that the prototype is an empty object who's prototype points to parent.prototype. But I figure providing this level of detail to OP clouds the true cause behind why child.constructor does not point to child: because it has been overwritten on the prototype.
13h
comment Why constructor property of object points to parent's constructor instead of F in extend function if constructor property is not overridden
@HMR Sure, if you want to get pedantic about it. __proto__ is still on the child prototype, even if it isn't the first link in the chain. This is still a valid explanation of the situation.
13h
answered Why constructor property of object points to parent's constructor instead of F in extend function if constructor property is not overridden
2d
comment What is a monad?
I've read multiple "explanations" for what a monad is but this is the first one that makes sense. For the first time, I feel like I at least have an inkling of an idea of what a monad is.
2d
answered Filter an array of objects in javascript
2d
revised Reversed array does not contain every element
improved formatting and improved title
2d
answered Reversed array does not contain every element
2d
comment Are Read-Only Properties in Javascript Objects REALLY Read-Only?
What's with the downvotes guys? This is a legitimate question about the nature of read-only in JavaScript as compared to the read-only nature of Java.
Aug
18
comment Why 'delete' doesn't check a property for garbage collector?
@RyanS How can multiple intervals be trying to increment it when only one interval is set?
Aug
18
comment Why 'delete' doesn't check a property for garbage collector?
@MuriloKunze You're right. Interestingly, it appears to be a real memory leak issue when dealing with the index reference. Try running your code where index is replaced with i and you'll see what I mean. The memory actually allocates and deallocates as you would expect.
Aug
18
answered Why 'delete' doesn't check a property for garbage collector?
Aug
18
comment Why 'delete' doesn't check a property for garbage collector?
@RyanS Exactly. The GC isn't going to run between your assignment and deletion lines. Most likely, it's allocated then deleted on the spot which is why you don't see any change in memory.
Aug
18
comment Pausing Recursive Function Call
window.clearTimeout requires a timeout ID which is returned from the setTimeout function.
Aug
18
comment Simulate File System in JSON
Emulating a file system structure in a JS object would not be hard. You already have your desired format, can't you just build from there? Also, Stack Overflow is meant for answering concrete questions where the asker has put in some research, not for suggesting libraries.
Aug
15
revised Issue with Select after prepending option
removed tags from title and improved formatting
Aug
15
answered Javascript inheriting properties and methods from a class?
Aug
15
comment Javascript inheriting properties and methods from a class?
How does it not work? Is the function being called at all? Try dropping a console.log into the draw function if you haven't checked.
Aug
14
answered How to get an array value in an object?
Aug
14
answered optional parameters in an async function
1 2 3 4 5