{"action":"closed","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1246","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1246/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1246/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1246/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1246","id":125358229,"number":1246,"title":"TypeError: Illegal Invocation","user":{"login":"SMarijic","id":8437398,"avatar_url":"https://avatars.githubusercontent.com/u/8437398?v=3","gravatar_id":"","url":"https://api.github.com/users/SMarijic","html_url":"https://github.com/SMarijic","followers_url":"https://api.github.com/users/SMarijic/followers","following_url":"https://api.github.com/users/SMarijic/following{/other_user}","gists_url":"https://api.github.com/users/SMarijic/gists{/gist_id}","starred_url":"https://api.github.com/users/SMarijic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SMarijic/subscriptions","organizations_url":"https://api.github.com/users/SMarijic/orgs","repos_url":"https://api.github.com/users/SMarijic/repos","events_url":"https://api.github.com/users/SMarijic/events{/privacy}","received_events_url":"https://api.github.com/users/SMarijic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-07T09:35:59Z","updated_at":"2016-01-07T19:57:33Z","closed_at":"2016-01-07T19:57:33Z","body":"Hi, I don't know is this my error or something else but here is the story. I have modal where you have list of files you can upload and you have button to add new file which opens new modal where you can select file, and I'm returning that file in promise to that first modal, and from there i want to add it to file array that I have. The problem is when I try to push it to array I get following errors\r\n\r\nTypeError: Illegal invocation\r\n    at equals (angular.js:1043)\r\n    at equals (angular.js:1043)\r\n    at equals (angular.js:1028)\r\n    at equals (angular.js:1043)\r\n    at Scope.$digest (angular.js:15820)\r\n    at Scope.scopePrototype.$digest (hint.js:1972)\r\n    at Scope.$apply (angular.js:16097)\r\n    at Scope.scopePrototype.$apply (hint.js:2035)\r\n    at HTMLButtonElement.<anonymous> (angular-touch.js:477)\r\n    at HTMLButtonElement.jQuery.event.dispatch (jquery.js:4435)\r\n\r\nTypeError: Illegal invocation\r\n    at equals (angular.js:1043)\r\n    at equals (angular.js:1043)\r\n    at equals (angular.js:1028)\r\n    at equals (angular.js:1043)\r\n    at Scope.$digest (angular.js:15820)\r\n    at Scope.scopePrototype.$digest (hint.js:1972)\r\n    at Scope.$apply (angular.js:16097)\r\n    at Scope.scopePrototype.$apply (hint.js:2035)\r\n    at tick (angular.js:11292)\r\n\r\nCan anybody help me with this because I'm out of ideas"}}