From 122321f56f406e57adad67dce2b6fda69f29220b Mon Sep 17 00:00:00 2001 From: hanwei59 Date: Sun, 28 Jul 2013 22:27:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chapter5.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter5.markdown b/chapter5.markdown index 0da1e6c..baca060 100644 --- a/chapter5.markdown +++ b/chapter5.markdown @@ -685,7 +685,7 @@ JavaScript不像Java或者其它语言,它没有专门的提供私有、保护 // 给this对象添加模块 // 未指明模块或者*都表示“使用所有模块” - if (!modules || modules === '*') { + if (!modules || modules[0] === '*') { modules = []; for (i in Sandbox.modules) { if (Sandbox.modules.hasOwnProperty(i)) {