Skip to content

Commit

Permalink
bump 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore committed May 22, 2013
1 parent 29d7296 commit 8d5f998
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions dist/iframe-shim-debug.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
define("arale/iframe-shim/1.0.1/iframe-shim-debug", [ "$-debug", "arale/position/1.0.0/position-debug" ], function(require, exports, module) {
define("arale/iframe-shim/1.0.2/iframe-shim-debug", [ "$-debug", "arale/position/1.0.0/position-debug" ], function(require, exports, module) {
var $ = require("$-debug");
var Position = require("arale/position/1.0.0/position-debug");
var isIE6 = (window.navigator.userAgent || "").toLowerCase().indexOf("msie 6") !== -1;
// target 是需要添加垫片的目标元素,可以传 `DOM Element` 或 `Selector`
function Shim(target) {
// 如果选择器选了多个 DOM,则只取第一个
Expand Down Expand Up @@ -39,12 +40,14 @@ define("arale/iframe-shim/1.0.1/iframe-shim-debug", [ "$-debug", "arale/position
}
delete this.target;
};
if ($.browser.msie && $.browser.version === "6.0") {
if (isIE6) {
module.exports = Shim;
} else {
// 除了 IE6 都返回空函数
function Noop() {}
Noop.prototype.sync = Noop;
Noop.prototype.sync = function() {
return this;
};
Noop.prototype.destroy = Noop;
module.exports = Noop;
}
Expand All @@ -70,4 +73,4 @@ define("arale/iframe-shim/1.0.1/iframe-shim-debug", [ "$-debug", "arale/position
css: css
}).insertBefore(target);
}
});
});
2 changes: 1 addition & 1 deletion dist/iframe-shim.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"family": "arale",
"name": "iframe-shim",
"version": "1.0.1",
"version": "1.0.2",
"keywords": ["utility", "ie6", "shim", "dom"],
"homepage": "http://aralejs.org/iframe-shim/",
"description": "工具类,在 IE6 下生成 iframe 遮挡 select 和 object。此组件对开发者透明,开发者无需再判断浏览器版本。",
Expand Down

0 comments on commit 8d5f998

Please sign in to comment.