Merge pull request #1002 from isiahmeadows/arg-fix
Serialize arguments correctly in m.component
This commit is contained in:
commit
8f348435e4
1 changed files with 5 additions and 1 deletions
|
|
@ -1348,7 +1348,11 @@
|
|||
}
|
||||
|
||||
m.component = function (component) {
|
||||
var args = [].slice.call(arguments, 1)
|
||||
var args = new Array(arguments.length - 1)
|
||||
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
args[i - 1] = arguments[i]
|
||||
}
|
||||
|
||||
return parameterize(component, args)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue