surface.disconnect( this, { 'toolbarPosition': 'positionPhantoms' } );
This throws Uncaught TypeError: Cannot read property 'length' of undefined when no such event has been bound first.
oo.EventEmitter.prototype.disconnect = function ( context, methods ) {
/* .. */ for ( event in methods ) { method = methods[event]; /* .. */ bindings = this.bindings[event]; i = bindings.length; /* ! */
It should silently skip it.
Moved from https://github.com/trevorparscal/oojs/issues/18.
Version: unspecified
Severity: major