-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix(infiniteGrid): fix image check module in IE9 #310
Conversation
LGTM |
@@ -824,8 +824,10 @@ eg.module("infiniteGrid", ["jQuery", eg, window, document, "Outlayer"], function | |||
$(e.target).off("load error"); | |||
checkCount <= 0 && callback && self.core && callback.apply(self); | |||
}; | |||
var $el; |
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.
Is necessary to declare outside of function?
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 not necessary. I want to declare a variable before running each
method.
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.
I think is creating unused closure scope.
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.
@netil I think he(@sculove) worries about performance. But It does not make matter anymore.
http://jindo.dev.naver.com/jsMatch/index.html?d=256&openResult=1
So I'm OK to remove var $el
. but current code looks fine to me.
Anyway I don't think there will be closure issue. I think $el will be remove from memory after this function is ended.
LGTM |
Issue
#309
Details
IE9 couldn't unaware
load
event of imagesPreferred reviewers
@kishu