Code:
this.allowFunctions = allowFunctions === true;
Is it really needed to restrict allowFunctions to boolean datatype? What if my call to Ext.util.MixedCollection constructor has a statement in place of allowFunctions argument which returns 0 or 1? Surely, I can convert it to boolean, but that's unnecessary code.