Emptying an array doesn't work in javascript
<p>This is the weirdest thing I've ever encountered in my programming life.</p>

<pre><code>self.walls = new Array();
self.walls = [];
console.log(self.walls); //Doesn't print an empty array, but an array that contains something
</code></pre>

<p>How is this possible? I set <code>self.walls</code> to an empty array in two ways, and it's still full of objects! I'm using the latest version of Google Chrome.</p>

<p>Edit: also, this is the only <code>console.log()</code> in the entire script.</p>
