//el.id and type are passed in through function
var a = new Subscription(el.id, type);
Control.subscriptions[el.id] = a;
console.log(a);
console.log(Control.subscriptions);
This shows that a has a value, but console logging Control.subscriptions always returns a blank array.
The weird thing is if I do
//el.id and type are passed in through function
var a = new Subscription(el.id, type);
Control.subscriptions.push(a);
console.log(a);
console.log(Control.subscriptions);
it works perfect