Skip to content

Commit 7fa49ad

Browse files
author
zhangxinxu
committed
1.0.1.rc
1.0.1.rc
1 parent ae8a2f8 commit 7fa49ad

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

1.0.1.rc/ieBetter-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.0.1.rc/ieBetter.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,7 @@
252252
return fDomExtend(Sizzle(selector, this));
253253
},
254254
getElementsByClassName: function(classNames) {
255-
return this.querySelectorAll(classNames.split(/\s+/g).map(function(className) {
256-
return "." + className;
257-
}).join());
255+
return this.querySelectorAll("." + classNames.trim().replace(/\s+/, "."));
258256
},
259257
// addEventListener
260258
addEventListener: function(eventType, funcHandle, useCapture) {

0 commit comments

Comments
 (0)