projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
console.warn to this.warn
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
0748d26
..
7231640
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-1002,9
+1002,13
@@
Dygraph.prototype.createStatusMessage_ = function() {
var div = document.createElement("div");
div.className = "dygraph-legend";
for (var name in messagestyle) {
var div = document.createElement("div");
div.className = "dygraph-legend";
for (var name in messagestyle) {
- if (messagestyle.hasOwnProperty(name)) {
- div.style[name] = messagestyle[name];
- }
+ if (messagestyle.hasOwnProperty(name)) {
+ try {
+ div.style[name] = messagestyle[name];
+ } catch (e) {
+ this.warn("You are using unsupported css properties for your browser in labelsDivStyles");
+ }
+ }
}
this.graphDiv.appendChild(div);
this.attrs_.labelsDiv = div;
}
this.graphDiv.appendChild(div);
this.attrs_.labelsDiv = div;