Skip to content

Commit

Permalink
fix avalon.mix 在IE6-8的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyLouvre committed Oct 17, 2014
1 parent 54b0cbb commit a461845
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@
if ((options = arguments[i]) != null) {
for (name in options) {
src = target[name]
copy = options[name]
try {
copy = options[name]//当options为VBS对象时报错
} catch (e) {
continue
}

// 防止环引用
if (target === copy) {
Expand Down Expand Up @@ -2538,7 +2542,6 @@
return elem[bool] = !!val
}
}
console.log(attrName)
var toRemove = (val === false) || (val === null) || (val === void 0)
if (!W3C && propMap[attrName]) {//旧式IE下需要进行名字映射
attrName = propMap[attrName]
Expand Down

0 comments on commit a461845

Please sign in to comment.