{"action":"created","issue":{"url":"https://api.github.com/repos/cowboy/jquery-throttle-debounce/issues/4","repository_url":"https://api.github.com/repos/cowboy/jquery-throttle-debounce","labels_url":"https://api.github.com/repos/cowboy/jquery-throttle-debounce/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/cowboy/jquery-throttle-debounce/issues/4/comments","events_url":"https://api.github.com/repos/cowboy/jquery-throttle-debounce/issues/4/events","html_url":"https://github.com/cowboy/jquery-throttle-debounce/issues/4","id":971130,"number":4,"title":"undefined jquery \"guid\" property","user":{"login":"jfinkels","id":121755,"avatar_url":"https://avatars.githubusercontent.com/u/121755?v=3","gravatar_id":"","url":"https://api.github.com/users/jfinkels","html_url":"https://github.com/jfinkels","followers_url":"https://api.github.com/users/jfinkels/followers","following_url":"https://api.github.com/users/jfinkels/following{/other_user}","gists_url":"https://api.github.com/users/jfinkels/gists{/gist_id}","starred_url":"https://api.github.com/users/jfinkels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfinkels/subscriptions","organizations_url":"https://api.github.com/users/jfinkels/orgs","repos_url":"https://api.github.com/users/jfinkels/repos","events_url":"https://api.github.com/users/jfinkels/events{/privacy}","received_events_url":"https://api.github.com/users/jfinkels/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2011-05-29T18:38:44Z","updated_at":"2016-06-29T12:17:01Z","closed_at":"2011-05-31T15:46:31Z","body":"With the following HTML\r\n\r\n```html\r\n  <html>\r\n    <head>\r\n      <script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js\"></script>\r\n      <script type=\"text/javascript\" src=\"./jquery.ba-throttle-debounce.js\"></script>\r\n\r\n      <script type=\"text/javascript\">\r\n        $.debounce(function() {});\r\n      </script>\r\n\r\n    </head>\r\n  </html>\r\n```\r\n\r\nI get the following traceback:\r\n\r\n```\r\n  Uncaught TypeError: Cannot read property 'guid' of undefined\r\n    at \"$.throttle.jq_throttle\" in jquery.ba-throttle-debounce.js:190\r\n    at \"$.debounce\" jquery.ba-throttle-debounce.js:248\r\n    at (anonymous function) in foo.html:6\r\n```\r\nI am using Chromium 11 on Ubuntu."},"comment":{"url":"https://api.github.com/repos/cowboy/jquery-throttle-debounce/issues/comments/229338818","html_url":"https://github.com/cowboy/jquery-throttle-debounce/issues/4#issuecomment-229338818","issue_url":"https://api.github.com/repos/cowboy/jquery-throttle-debounce/issues/4","id":229338818,"user":{"login":"dimosr","id":6065016,"avatar_url":"https://avatars.githubusercontent.com/u/6065016?v=3","gravatar_id":"","url":"https://api.github.com/users/dimosr","html_url":"https://github.com/dimosr","followers_url":"https://api.github.com/users/dimosr/followers","following_url":"https://api.github.com/users/dimosr/following{/other_user}","gists_url":"https://api.github.com/users/dimosr/gists{/gist_id}","starred_url":"https://api.github.com/users/dimosr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimosr/subscriptions","organizations_url":"https://api.github.com/users/dimosr/orgs","repos_url":"https://api.github.com/users/dimosr/repos","events_url":"https://api.github.com/users/dimosr/events{/privacy}","received_events_url":"https://api.github.com/users/dimosr/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T12:17:01Z","updated_at":"2016-06-29T12:17:01Z","body":"@hourdays , @Cian911 I was trying to handle approximately the same issue. Besides wanting to add parameters, I wanted to call a function on a specific object (i.e. `myObject.myFunc()`). So, instead of:\r\n```javascript\r\n$( window ).resize(function(event) {\r\n      $.debounce( 250, myObject.myFunc() );\r\n});\r\n```\r\nor\r\n```javascript\r\n$( window ).resize(function(event) {\r\n      $.debounce( 250,  function(){myObject.myFunc()} );\r\n});\r\n```\r\nI had to use:\r\n```javascript\r\n$( window ).resize(function(event) {\r\n      $.debounce( 250,  function(){myObject.myFunc()} )();\r\n});\r\n```\r\nwhich worked normally, without throwing the error."}}
{"actor":{"display_login":"dimosr"}}