-
Notifications
You must be signed in to change notification settings - Fork 44
fix: IE =< 8 incompatibility regression #43
fix: IE =< 8 incompatibility regression #43
Conversation
|
addScript.js
Outdated
eval.call(null, src); | ||
} else if (typeof execScript !== "undefined") { | ||
if (typeof execScript !== "undefined" | ||
/* "bad" IE */ && typeof attachEvent !== "undefined" && typeof addEventListener === "undefined") { |
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.
Please extract the IE Check into its own block/helper
// Check for IE =< 8
function isIE () {
return typeof ...
}
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.
Move the helper above L5
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.
It's done
addScript.js
Outdated
report(error); | ||
} | ||
|
||
function report(error) { |
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.
report
=> log
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.
Move the helper above L5
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.
@lwr Thx
addScript.js
Outdated
@@ -3,22 +3,27 @@ | |||
Author Tobias Koppers @sokra | |||
*/ | |||
module.exports = function(src) { | |||
|
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.
Final nitpick 🐤 No block padding here please 😛
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.
ok, squashed
0.7.1 breaks IE8, this commit takes it back
0.7.1 breaks IE8, this commit takes it back
Notabel Changes
Issues
Related #41