-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add info about last version supporting IE9 and IE10 and remove obsolete code #5373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
6d0e4c7
3b1fe09
b2c0075
bc2b0d1
9276d08
42c97e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,27 +82,10 @@ loggers.error = function() { | |
} | ||
}; | ||
|
||
/* | ||
* Robust apply, for IE9 where console.log doesn't support | ||
* apply like other functions do | ||
*/ | ||
function apply(f, args) { | ||
if(f && f.apply) { | ||
try { | ||
// `this` should always be console, since here we're always | ||
// applying a method of the console object. | ||
f.apply(console, args); | ||
return; | ||
} catch(e) { /* in case apply failed, fall back on the code below */ } | ||
} | ||
|
||
// no apply - just try calling the function on each arg independently | ||
for(var i = 0; i < args.length; i++) { | ||
try { | ||
f(args[i]); | ||
} catch(e) { | ||
// still fails - last resort simple console.log | ||
console.log(args[i]); | ||
} | ||
// `this` should always be console, since here we're always | ||
// applying a method of the console object. | ||
f.apply(console, args); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could remove this function entirely now, just inline the apply calls. Also the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call. Done in bc2b0d1. |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
* strict-d3: wrap selection.style to prohibit specific incorrect style values | ||
* that are known to cause problems in IE (at least IE9) | ||
*/ | ||
|
||
// Do we need this process now that IE9 and IE10 are not supported? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, if you look down below there's plenty here that applies to other browsers too. There may be some parts we could relax but no harm leaving it all for now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. I removed the comment in 9276d08. |
||
|
||
'use strict'; | ||
|
||
var d3 = require('@plotly/d3'); | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we could probably get rid of this now - and revert the change here that's its only consumer: 98adfae#diff-9c325f1fe845cf45c705407012f4d4d0be31a9d9fbead70d1f70c5dedde9c634
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 42c97e2.