Developer at Novarad

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

Feb
27
revised Cart not being updated after clicking link through JS
improved formatting
Feb
27
answered Passing through array that is in an object into a function
Feb
27
comment Recurse over childNodes
The script is run inside of a smaller sandbox in an iframe, not the main Stack Overflow page. Paste your code snippet into your console and you'll see what you would expect.
Feb
25
comment Storing this object in custom private variable
@ThomasRyan See my edit.
Feb
25
revised Storing this object in custom private variable
Showing additional way of achieving same effect
Feb
25
answered Storing this object in custom private variable
Feb
25
comment How to list all objects in OOP
That definitely works. I agree with your second idea about making the array a static property of myObject, I was just refuting your first point.
Feb
25
comment How to list all objects in OOP
True but placing it inside of the constructor ensures that every reference is collected. It's just a matter of how you want to organize your code and if you want to repeatedly type myObjects.push.
Feb
25
answered How to list all objects in OOP
Feb
25
answered javascript bitwise and yielding weird results
Feb
25
comment How To Secure User Defined Custom Script (JavaScript)
It all depends on how this is being used and what needs protected. If this user scripts will be accessed by external users (i.e., people who did not right the custom script) then you've opened up your flood gates. If you can run an arbitrary function then you can do anything. This problem is known as cross-site-scripting
Feb
25
revised How do I show a JS variable on the TITLE tag?
improved formatting
Feb
25
comment Why can't I add parameters to the window.location?
@MarkKadlec Simply don't call window.location.reload() after setting window.location.href.
Feb
25
comment Why can't I add parameters to the window.location?
@Juhana Thanks for pointing that out. That makes sense.
Feb
25
answered Why can't I add parameters to the window.location?
Feb
17
revised Correct order for a sentence
improved formatting
Feb
17
comment How to turn off JSHint error in Webstorm?
You can tell WebStorm to parse your .jshintrc (I believe it does so by default) and it will follow all rules set in there.
Feb
17
comment How to turn off JSHint error in Webstorm?
possible duplicate of How to turn off JSHint error?
Feb
17
answered How to turn off JSHint error?
Feb
2
revised javascript conditional before push?
Inserted code into question. Improved formatting
1 2 3 4 5