Whats the difference between the two calls? It almost seems identical but running it tells me otherwise. Calling the property from within the variable, and outside the variable seem to be calling different things but I'm not sure how or why.
PS. Cheese is a boolean property set to false.
toggleCheese: function(position) {
var pizza = this.pizza[position].cheese;
pizza = !pizza;
}
vs
toggleCheese: function(position) {
var pizza= this.pizza[position];
pizza.cheese = !pizza.cheese;
}