Skip to content

Commit 8f474b8

Browse files
committed
Merge pull request BonsaiDen#172 from CalvinChen/master
fix typing error.
2 parents 825ec34 + 6c4f5ce commit 8f474b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/zh/object/forinloop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
如果不使用 `hasOwnProperty`,则这段代码在原生对象原型(比如 `Object.prototype`)被扩展时可能会出错。
3131

3232
一个广泛使用的类库 [Prototype][1] 就扩展了原生的 JavaScript 对象。
33-
因此,但这个类库被包含在页面中时,不使用 `hasOwnProperty` 过滤的 `for in` 循环难免会出问题。
33+
因此,当这个类库被包含在页面中时,不使用 `hasOwnProperty` 过滤的 `for in` 循环难免会出问题。
3434

3535
###总结
3636

doc/zh/object/hasownproperty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ JavaScript **不会**保护 `hasOwnProperty` 被非法占用,因此如果一
3535

3636
foo.hasOwnProperty('bar'); // 总是返回 false
3737

38-
// 使用其它对象的 hasOwnProperty,并将其上下为设置为foo
38+
// 使用其它对象的 hasOwnProperty,并将其上下文设置为foo
3939
({}).hasOwnProperty.call(foo, 'bar'); // true
4040

4141
###结论

0 commit comments

Comments
 (0)