sometimes when saving statements on test.wikidata, I get a js error:
jquery.wikibase.edittoolbar.js?645d4:363 Uncaught TypeError: Cannot read property 'option' of undefined
the error comes from:
subToolbar.option( '$content', this.getButton( 'edit' ).element );
in:
/** * Switches the toolbar to non-edit mode displaying the "edit" button. */ toNonEditMode: function() { if ( !this._isInEditMode() ) { return; } if ( this._$tooltipAnchor ) { this._$tooltipAnchor.detach(); } var $subToolbar = this.getContainer().children( ':wikibase-toolbar' ), subToolbar = $subToolbar.data( 'toolbar' ); subToolbar.option( '$content', this.getButton( 'edit' ).element ); this.getContainer().removeClass( this.widgetBaseClass + '-ineditmode' ); },