{"action":"created","issue":{"url":"https://api.github.com/repos/dalgard/meteor-viewmodel/issues/18","labels_url":"https://api.github.com/repos/dalgard/meteor-viewmodel/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/dalgard/meteor-viewmodel/issues/18/comments","events_url":"https://api.github.com/repos/dalgard/meteor-viewmodel/issues/18/events","html_url":"https://github.com/dalgard/meteor-viewmodel/issues/18","id":119937967,"number":18,"title":"Shooting params into viewmodel functions","user":{"login":"wvanooijen92","id":2452503,"avatar_url":"https://avatars.githubusercontent.com/u/2452503?v=3","gravatar_id":"","url":"https://api.github.com/users/wvanooijen92","html_url":"https://github.com/wvanooijen92","followers_url":"https://api.github.com/users/wvanooijen92/followers","following_url":"https://api.github.com/users/wvanooijen92/following{/other_user}","gists_url":"https://api.github.com/users/wvanooijen92/gists{/gist_id}","starred_url":"https://api.github.com/users/wvanooijen92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvanooijen92/subscriptions","organizations_url":"https://api.github.com/users/wvanooijen92/orgs","repos_url":"https://api.github.com/users/wvanooijen92/repos","events_url":"https://api.github.com/users/wvanooijen92/events{/privacy}","received_events_url":"https://api.github.com/users/wvanooijen92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-02T13:13:43Z","updated_at":"2015-12-02T13:17:32Z","closed_at":null,"body":"Hi,\r\n\r\nFirst of all, great project! \r\n\r\nI have a template named a with the following html:\r\n```    \r\n<div class=\"col s2 center\" {{bind \"click: add -1\"}}><i class=\"material-icons\">remove</i></div>\r\n```\r\nIn my JS i have:\r\n```\r\n    Template.a.viewmodel({\r\n        add : function(e,quantity){\r\n            console.log(quantity, parseFloat(quantity[1]));\r\n        }\r\n    }\r\n```\r\nWhy is quantity an array? I expected it to be -1\r\n\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/dalgard/meteor-viewmodel/issues/comments/161287339","html_url":"https://github.com/dalgard/meteor-viewmodel/issues/18#issuecomment-161287339","issue_url":"https://api.github.com/repos/dalgard/meteor-viewmodel/issues/18","id":161287339,"user":{"login":"dalgard","id":1209018,"avatar_url":"https://avatars.githubusercontent.com/u/1209018?v=3","gravatar_id":"","url":"https://api.github.com/users/dalgard","html_url":"https://github.com/dalgard","followers_url":"https://api.github.com/users/dalgard/followers","following_url":"https://api.github.com/users/dalgard/following{/other_user}","gists_url":"https://api.github.com/users/dalgard/gists{/gist_id}","starred_url":"https://api.github.com/users/dalgard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalgard/subscriptions","organizations_url":"https://api.github.com/users/dalgard/orgs","repos_url":"https://api.github.com/users/dalgard/repos","events_url":"https://api.github.com/users/dalgard/events{/privacy}","received_events_url":"https://api.github.com/users/dalgard/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T13:17:32Z","updated_at":"2015-12-02T13:17:32Z","body":"Thanks. The second parameter in your method will be an array of the string arguments appended in the binding expression – and the third parameter will be an object with the keyword arguments passed to the `{{bind}}` helper :)"}}