Skip to content

Commit a1119ac

Browse files
committed
Merge pull request #22 from hanwei59/master
修改代码错误
2 parents 4b952bf + 122321f commit a1119ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter5.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ JavaScript不像Java或者其它语言,它没有专门的提供私有、保护
685685

686686
// 给this对象添加模块
687687
// 未指明模块或者*都表示“使用所有模块”
688-
if (!modules || modules === '*') {
688+
if (!modules || modules[0] === '*') {
689689
modules = [];
690690
for (i in Sandbox.modules) {
691691
if (Sandbox.modules.hasOwnProperty(i)) {

0 commit comments

Comments
 (0)