-
-
Notifications
You must be signed in to change notification settings - Fork 313
script_list.splice.call(script_list,splice_args); #38
Comments
I think you're right, the splice call is needlessly verbose as written. it should just be I'm not sure I understand your second question. |
$LAB.script(['test1.php',['test2.php','test3.php']]); it just has one parameter ['test1.php',['test2.php','test3.php']] ,not two parameters "test1.php" and ["test2.php", "test3.php"] |
I'm sorry, I still don't understand your question. In your example, is it loading all 3 scripts or not? |
... I try it again , that may be my mistake |
I push the example to internet .http://dexbol.sinaapp.com/labjs/ |
OK, I see and can reproduce the problem... very strange. But thank you for the bug report. I'll get on fixing it. |
OK, I figured out what the bug was, and have fixed it (will come out in 2.0.2 when I get that release out, asap). Those few lines now read (including comments to explain what the heck I was doing!):
Thanks again for helping find this bug! |
OK,thanks for your code and explain too. |
fixed in v2.0.2 |
there are two questions.
what difference between script_list.splice.call(script_list,splice_args) and script_list.splice(splice_args)?
$LAB.script(['test1.php',['test2.php','test3.php']]);
it's just load test1.php , if this statement is wrong ,why do that check the parameter is a array? line 386
The text was updated successfully, but these errors were encountered: