mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Add option flag to supress internal CSS.
This commit is contained in:
@@ -126,6 +126,10 @@ Blockly.parseOptions_ = function(options) {
|
||||
if (hasSounds === undefined) {
|
||||
hasSounds = true;
|
||||
}
|
||||
var hasCss = options['css'];
|
||||
if (hasCss === undefined) {
|
||||
hasCss = true;
|
||||
}
|
||||
var enableRealtime = !!options['realtime'];
|
||||
var realtimeOptions = enableRealtime ? options['realtimeOptions'] : undefined;
|
||||
|
||||
@@ -145,6 +149,7 @@ Blockly.parseOptions_ = function(options) {
|
||||
Blockly.hasScrollbars = hasScrollbars;
|
||||
Blockly.hasTrashcan = hasTrashcan;
|
||||
Blockly.hasSounds = hasSounds;
|
||||
Blockly.hasCss = hasCss;
|
||||
Blockly.languageTree = tree;
|
||||
Blockly.enableRealtime = enableRealtime;
|
||||
Blockly.realtimeOptions = realtimeOptions;
|
||||
@@ -164,7 +169,9 @@ Blockly.createDom_ = function(container) {
|
||||
goog.ui.Component.setDefaultRightToLeft(Blockly.RTL);
|
||||
|
||||
// Load CSS.
|
||||
Blockly.Css.inject();
|
||||
if (Blockly.hasCss) {
|
||||
Blockly.Css.inject();
|
||||
}
|
||||
|
||||
// Build the SVG DOM.
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user