Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/azul.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to find some a long term solution, because once I'll decide to upgrade JS I need to update it again, and I'm 100% sure I won't do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not following, window should be always there for browsers. Can you give me example where it would fail?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if I decide to upgrade eCharts library, I need to make the same changes again

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe I downloaded the wrong theme files? https://echarts.apache.org/en/download.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theme files look good and I see your point we can't change theme files. The download files seems to be correct. Let me see how import charts load themes, will try to come up with solution that does not depend on changing theme files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/bee-inspired.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/blue.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/caravan.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/carp.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/cool.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/dark-blue.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/dark-bold.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/dark-digerati.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/dark-fresh-cut.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/dark-mushroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/dark.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/eduardo.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/forest.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/fresh-cut.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/fruit.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/gray.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/green.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/helianthus.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/infographic.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/inspired.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/jazz.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/london.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/macarons.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/macarons2.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/mint.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/rainbow.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/red-velvet.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/red.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/roma.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/royal.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/sakura.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/shine.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/tech-blue.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/echarts/theme/vintage.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Browser globals
factory({}, root.echarts);
}
})(this, function(exports, echarts) {
})(this || window, function(exports, echarts) {
var log = function(msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
Expand Down