This is the weirdest thing I've ever encountered in my programming life.
self.walls = new Array();
self.walls = [];
console.log(self.walls); //Doesn't print an empty array, but an array that contains something
How is this possible? I set self.walls to an empty array in two ways, and it's still full of objects! I'm using the latest version of Google Chrome.
Edit: also, this is the only console.log() in the entire script.