{"action":"opened","issue":{"url":"https://api.github.com/repos/persvr/rql/issues/65","labels_url":"https://api.github.com/repos/persvr/rql/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/persvr/rql/issues/65/comments","events_url":"https://api.github.com/repos/persvr/rql/issues/65/events","html_url":"https://github.com/persvr/rql/issues/65","id":102007347,"number":65,"title":"or() doesn't clean up __rqlId attributes","user":{"login":"dmartinzar","id":912952,"avatar_url":"https://avatars.githubusercontent.com/u/912952?v=3","gravatar_id":"","url":"https://api.github.com/users/dmartinzar","html_url":"https://github.com/dmartinzar","followers_url":"https://api.github.com/users/dmartinzar/followers","following_url":"https://api.github.com/users/dmartinzar/following{/other_user}","gists_url":"https://api.github.com/users/dmartinzar/gists{/gist_id}","starred_url":"https://api.github.com/users/dmartinzar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmartinzar/subscriptions","organizations_url":"https://api.github.com/users/dmartinzar/orgs","repos_url":"https://api.github.com/users/dmartinzar/repos","events_url":"https://api.github.com/users/dmartinzar/events{/privacy}","received_events_url":"https://api.github.com/users/dmartinzar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T21:50:03Z","updated_at":"2015-08-19T21:50:03Z","closed_at":null,"body":"In js-array.js, the or() function attempts to clean up its temporary '__rqlId' attributes using:\r\n\r\n    // cleanup markers\r\n    for(var i = 0, l = items.length; i < l; i++){\r\n        delete items[idProperty];\r\n    }\r\n\r\nThis should be:\r\n\r\n    // cleanup markers\r\n    for(var i = 0, l = items.length; i < l; i++){\r\n        delete items[i][idProperty];\r\n    }\r\n\r\nWith enough objects and frequent enough queries, this can lead to a substantial memory leak."}}