Skip to content

Commit 88fc8ca

Browse files
authored
Merge pull request #7 from ambit-tsai/dev
v2.0.0
2 parents e08c585 + f653eb5 commit 88fc8ca

File tree

7 files changed

+553
-339
lines changed

7 files changed

+553
-339
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ A `Object.defineProperty` sham based on **VBScript** for IE. It also provides `O
77

88

99
#### Notice
10-
1. Use native method for `Element` object in IE8;
11-
1. In other case, `Object.defineProperty` will return a new VB object;
12-
1. VB object can't add or delete properties freely;
13-
1. VB object doesn't have `[[Prototype]]` or `__proto__`;
14-
1. The properties of VB object is enumerable even if descriptor `enumerable` is `false`;
10+
1. In IE8, program will use native method `defineProperty` or `getOwnPropertyDescriptor` for `Element` object, `doucment` and `window`
11+
1. In other case, `defineProperty` will return a new VB object
12+
1. VB object can't add or delete properties freely
13+
1. VB object doesn't have `[[Prototype]]` or `__proto__`
14+
1. The property name of VB object can't contain special character `]`
15+
1. The properties of VB object are enumerable, it's unaffected by descriptor `enumerable`
1516

1617

1718
#### Installation
@@ -59,7 +60,8 @@ A `Object.defineProperty` sham based on **VBScript** for IE. It also provides `O
5960

6061

6162
#### Testing
62-
Accessing `test/index.html` with browser
63+
1. Accessing `test/index.html` with browser
64+
1. Tested in IE6, IE7, IE8
6365

6466

6567
#### Contact Us

README.zh-CN.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77

88

99
#### 注意
10-
1. 在 IE8 中,对于 `Element` 对象将调用原生的方法
11-
1. 其他情况下,`Object.defineProperty` 将会返回一个新的 VB 对象;
12-
1. VB 对象不能随意增删属性
10+
1. 在 IE8 中,对于 `Element` 对象、`doucment``window` 将调用原生的 `defineProperty``getOwnPropertyDescriptor` 方法
11+
1. 其他情况下,`defineProperty` 将会返回一个新的 VB 对象;
12+
1. VB 对象不能随意增删属性
1313
1. VB 对象没有 `[[Prototype]]``__proto__`
14-
1. 即使描述符 `enumerable``false` ,VB 对象的属性仍是可枚举的;
14+
1. VB 对象的属性名不能包含特殊字符 `]`
15+
1. VB 对象的属性是可枚举的,不受描述符 `enumerable` 的影响;
1516

1617

1718
#### 安装
@@ -59,7 +60,8 @@
5960

6061

6162
#### 测试
62-
使用浏览器访问 `test/index.html`
63+
1. 使用浏览器访问 `test/index.html`
64+
1. 已在IE6、IE7、IE8中进行测试
6365

6466

6567
#### 联系

dist/object-defineproperty-ie.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "object-defineproperty-ie",
3-
"version": "1.2.0",
3+
"version": "2.0.0",
44
"description": "A Object.defineProperty sham based on VBScript for IE",
55
"main": "src/object-defineproperty-ie.js",
66
"scripts": {

0 commit comments

Comments
 (0)