Skip to content

Commit 1dfae72

Browse files
committed
Fixed lining.effect.js on IE8;
1 parent b446367 commit 1dfae72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build/lining.effect.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lining.effect.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
return;
1515
}
1616

17-
document.addEventListener('beforelining', function (e) {
17+
lining.util.on(document, 'beforelining', function (e) {
1818
var target = e.target;
1919
var effectName = target.getAttribute('data-effect');
2020
var effect = Effects[effectName];
@@ -23,7 +23,7 @@
2323
}
2424
});
2525

26-
document.addEventListener('afterlining', function (e) {
26+
lining.util.on(document, 'afterlining', function (e) {
2727
var target = e.target;
2828
var effectName = target.getAttribute('data-effect');
2929
var effect = Effects[effectName];

0 commit comments

Comments
 (0)