{"action":"created","issue":{"url":"https://api.github.com/repos/BeSite/jQuery.dotdotdot/issues/79","labels_url":"https://api.github.com/repos/BeSite/jQuery.dotdotdot/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/BeSite/jQuery.dotdotdot/issues/79/comments","events_url":"https://api.github.com/repos/BeSite/jQuery.dotdotdot/issues/79/events","html_url":"https://github.com/BeSite/jQuery.dotdotdot/issues/79","id":92573116,"number":79,"title":"Pass \"height\" option as function","user":{"login":"pavgra","id":10010071,"avatar_url":"https://avatars.githubusercontent.com/u/10010071?v=3","gravatar_id":"","url":"https://api.github.com/users/pavgra","html_url":"https://github.com/pavgra","followers_url":"https://api.github.com/users/pavgra/followers","following_url":"https://api.github.com/users/pavgra/following{/other_user}","gists_url":"https://api.github.com/users/pavgra/gists{/gist_id}","starred_url":"https://api.github.com/users/pavgra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavgra/subscriptions","organizations_url":"https://api.github.com/users/pavgra/orgs","repos_url":"https://api.github.com/users/pavgra/repos","events_url":"https://api.github.com/users/pavgra/events{/privacy}","received_events_url":"https://api.github.com/users/pavgra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T07:43:43Z","updated_at":"2015-07-12T17:46:38Z","closed_at":null,"body":"It would be cool to be able to pass not number but function as \"height\" parameter.\r\n\r\nTo add such feature the following code:\r\n\r\n\"opts.maxHeight = ( typeof opts.height == 'number' )\r\n\t? opts.height\r\n\t: getTrueInnerHeight( $dot );\"\r\n\r\nneeds to be relpaced with\r\n\r\n\"if (typeof opts.height == 'number')\r\n\topts.maxHeight = opts.height;\r\nelse if (typeof opts.height == 'function')\r\n\topts.maxHeight = opts.height();\r\nelse\r\n\topts.maxHeight = getTrueInnerHeight( $dot );\""},"comment":{"url":"https://api.github.com/repos/BeSite/jQuery.dotdotdot/issues/comments/120749853","html_url":"https://github.com/BeSite/jQuery.dotdotdot/issues/79#issuecomment-120749853","issue_url":"https://api.github.com/repos/BeSite/jQuery.dotdotdot/issues/79","id":120749853,"user":{"login":"FrDH","id":1387163,"avatar_url":"https://avatars.githubusercontent.com/u/1387163?v=3","gravatar_id":"","url":"https://api.github.com/users/FrDH","html_url":"https://github.com/FrDH","followers_url":"https://api.github.com/users/FrDH/followers","following_url":"https://api.github.com/users/FrDH/following{/other_user}","gists_url":"https://api.github.com/users/FrDH/gists{/gist_id}","starred_url":"https://api.github.com/users/FrDH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrDH/subscriptions","organizations_url":"https://api.github.com/users/FrDH/orgs","repos_url":"https://api.github.com/users/FrDH/repos","events_url":"https://api.github.com/users/FrDH/events{/privacy}","received_events_url":"https://api.github.com/users/FrDH/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T17:46:38Z","updated_at":"2015-07-12T17:46:38Z","body":"Thank you for the suggestion.\r\nI'll see if I can implement this is the next version."}}