ariatemplates/ariatemplates — pull request #68 by renjurichard (2012-07-13 10:22:15+00:00)
Title: Added new bean param for the new property "resIndex" which deals with ev...

...ent/result position.

And also added the changes for manipulating the array args. A check is done in the callWrapper of jsObject base class
function to find the newly added 'resIndex' and manipulated the args array
based on the passed value.

resIndex = -1 ( will remove result| event from the first position)
resIndex = 0 ( default behaviour, result|event will be the first argument)
resIndex > 0 ( will set the result|event in the nth position)

In IO.js, changed the positions of result args array to match resIndex property