Remove all goog.asserts and goog.isXxx

First step to reducing Closure’s footprint.
This commit is contained in:
Neil Fraser
2018-06-10 00:15:22 -07:00
committed by Neil Fraser
parent 02dc7b1d1d
commit 3909bd420a
35 changed files with 251 additions and 205 deletions

View File

@@ -660,7 +660,7 @@ Blockly.Scrollbar.prototype.setVisible = function(visible) {
// Ideally this would also apply to scrollbar pairs, but that's a bigger
// headache (due to interactions with the corner square).
if (this.pair_) {
throw 'Unable to toggle visibility of paired scrollbars.';
throw Error('Unable to toggle visibility of paired scrollbars.');
}
this.isVisible_ = visible;
if (visibilityChanged) {