Closed srijken closed 9 years ago
When calling $log.info("a", "b"); that normally outputs "a", "b" using previousFn.call() causes the output ["a","b"] or in IE9 just [object Arguments]
$log.info("a", "b");
"a", "b"
previousFn.call()
["a","b"]
[object Arguments]
.apply() takes in an array as secondary parameter, instead of expecting each argument individually.
.apply()
When calling
$log.info("a", "b");
that normally outputs"a", "b"
usingpreviousFn.call()
causes the output["a","b"]
or in IE9 just[object Arguments]
.apply()
takes in an array as secondary parameter, instead of expecting each argument individually.