{"action":"created","issue":{"url":"https://api.github.com/repos/vitmalina/w2ui/issues/1273","repository_url":"https://api.github.com/repos/vitmalina/w2ui","labels_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1273/labels{/name}","comments_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1273/comments","events_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1273/events","html_url":"https://github.com/vitmalina/w2ui/issues/1273","id":161413386,"number":1273,"title":"Grid: ERROR: Cannot add records without recid. (obj: grid)","user":{"login":"petersirka","id":2414252,"avatar_url":"https://avatars.githubusercontent.com/u/2414252?v=3","gravatar_id":"","url":"https://api.github.com/users/petersirka","html_url":"https://github.com/petersirka","followers_url":"https://api.github.com/users/petersirka/followers","following_url":"https://api.github.com/users/petersirka/following{/other_user}","gists_url":"https://api.github.com/users/petersirka/gists{/gist_id}","starred_url":"https://api.github.com/users/petersirka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petersirka/subscriptions","organizations_url":"https://api.github.com/users/petersirka/orgs","repos_url":"https://api.github.com/users/petersirka/repos","events_url":"https://api.github.com/users/petersirka/events{/privacy}","received_events_url":"https://api.github.com/users/petersirka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-21T11:34:19Z","updated_at":"2016-06-21T14:29:27Z","closed_at":"2016-06-21T14:29:27Z","body":"Hi,\r\nI found a problem with the Grid component. When I extend the `Array.prototype` about my method then the grid doesn't work.\r\n\r\nExample:\r\n```javascript\r\nArray.prototype.myMethod = function() {\r\n};\r\n\r\n$(function () {\r\n\t$('#grid').w2grid({\r\n\t\tname: 'grid',\r\n\t\theader: 'List of Names',\r\n\t\tshow: {\r\n\t\t\ttoolbar: true,\r\n\t\t\tfooter: true\r\n\t\t},\r\n\t\tsearches: [\r\n\t\t\t{ field: 'lname', caption: 'Last Name', type: 'text' },\r\n\t\t\t{ field: 'fname', caption: 'First Name', type: 'text' },\r\n\t\t\t{ field: 'email', caption: 'Email', type: 'text' },\r\n\t\t],\r\n\t\tsortData: [{ field: 'recid', direction: 'ASC' }],\r\n\t\tcolumns: [\r\n\t\t\t{ field: 'recid', caption: 'ID', size: '50px', sortable: true, attr: 'align=center' },\r\n\t\t\t{ field: 'lname', caption: 'Last Name', size: '30%', sortable: true, resizable: true },\r\n\t\t\t{ field: 'fname', caption: 'First Name', size: '30%', sortable: true, resizable: true },\r\n\t\t\t{ field: 'email', caption: 'Email', size: '40%', sortable: true, resizable: true },\r\n\t\t\t{ field: 'sdate', caption: 'Start Date', size: '120px', sortable: true, resizable: true },\r\n\t\t],\r\n\t\trecords: [\r\n\t\t\t{ recid: 1, fname: 'John', lname: 'doe', email: 'jdoe@gmail.com', sdate: '4/3/2012' },\r\n\t\t\t{ recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'jdoe@gmail.com', sdate: '4/3/2012' },\r\n\t\t\t{ recid: 3, fname: 'Jin', lname: 'Franson', email: 'jdoe@gmail.com', sdate: '4/3/2012' },\r\n\t\t\t{ recid: 4, fname: 'Susan', lname: 'Ottie', email: 'jdoe@gmail.com', sdate: '4/3/2012' },\r\n\t\t\t{ recid: 5, fname: 'Kelly', lname: 'Silver', email: 'jdoe@gmail.com', sdate: '4/3/2012' },\r\n\t\t\t{ recid: 6, fname: 'Francis', lname: 'Gatos', email: 'jdoe@gmail.com', sdate: '4/3/2012' }\r\n\t\t]\r\n\t});\r\n});\r\n````\r\n\r\n__w2ui-1.4.3.js__ line 1835:\r\n```javascript\r\nfor (var r in records) {\r\n}\r\n```\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/vitmalina/w2ui/issues/comments/227457531","html_url":"https://github.com/vitmalina/w2ui/issues/1273#issuecomment-227457531","issue_url":"https://api.github.com/repos/vitmalina/w2ui/issues/1273","id":227457531,"user":{"login":"mrg2001","id":1964803,"avatar_url":"https://avatars.githubusercontent.com/u/1964803?v=3","gravatar_id":"","url":"https://api.github.com/users/mrg2001","html_url":"https://github.com/mrg2001","followers_url":"https://api.github.com/users/mrg2001/followers","following_url":"https://api.github.com/users/mrg2001/following{/other_user}","gists_url":"https://api.github.com/users/mrg2001/gists{/gist_id}","starred_url":"https://api.github.com/users/mrg2001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrg2001/subscriptions","organizations_url":"https://api.github.com/users/mrg2001/orgs","repos_url":"https://api.github.com/users/mrg2001/repos","events_url":"https://api.github.com/users/mrg2001/events{/privacy}","received_events_url":"https://api.github.com/users/mrg2001/received_events","type":"User","site_admin":false},"created_at":"2016-06-21T14:29:27Z","updated_at":"2016-06-21T14:29:27Z","body":"https://github.com/vitmalina/w2ui/blob/master/dist/w2ui.js\r\nhttps://github.com/vitmalina/w2ui/blob/master/dist/w2ui.css"}}
{"actor":{"display_login":"mrg2001"}}