{"action":"closed","issue":{"url":"https://api.github.com/repos/agershun/alasql/issues/347","labels_url":"https://api.github.com/repos/agershun/alasql/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/agershun/alasql/issues/347/comments","events_url":"https://api.github.com/repos/agershun/alasql/issues/347/events","html_url":"https://github.com/agershun/alasql/issues/347","id":92555542,"number":347,"title":"Event error","user":{"login":"jtrebess","id":8833539,"avatar_url":"https://avatars.githubusercontent.com/u/8833539?v=3","gravatar_id":"","url":"https://api.github.com/users/jtrebess","html_url":"https://github.com/jtrebess","followers_url":"https://api.github.com/users/jtrebess/followers","following_url":"https://api.github.com/users/jtrebess/following{/other_user}","gists_url":"https://api.github.com/users/jtrebess/gists{/gist_id}","starred_url":"https://api.github.com/users/jtrebess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtrebess/subscriptions","organizations_url":"https://api.github.com/users/jtrebess/orgs","repos_url":"https://api.github.com/users/jtrebess/repos","events_url":"https://api.github.com/users/jtrebess/events{/privacy}","received_events_url":"https://api.github.com/users/jtrebess/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T05:49:42Z","updated_at":"2015-07-02T06:10:28Z","closed_at":"2015-07-02T06:10:28Z","body":"Hello,\r\nin my controller I used the example.\r\nTemplate:\r\n```html\r\n<input type=\"file\" ng-mouseleave=\"loadFile($event)\" />\r\n```\r\n\r\nController:\r\n```javascript\r\n$rootScope.loadFile = function ($event) {\r\n            if (event.fromElement.files.length==0) {\r\n                return(false);   // leave in case no file was chosen\r\n            };\r\n            alasql('SELECT * FROM FILE(?,{headers:true})', [event], function (data) {\r\n                $rootScope.eData = data;     //  eData contains the JSON representation of the Excel sheet rows\r\n            });\r\n        };\r\n```\r\n\r\nWhen I pick a File (XLSX or CSV) the console throws the following Error:\r\nError: event is not defined\r\n\r\nIs there any configuration missing in my project?\r\n\r\nThanks in advance"}}