{"action":"created","issue":{"url":"https://api.github.com/repos/readium/readium-shared-js/issues/397","repository_url":"https://api.github.com/repos/readium/readium-shared-js","labels_url":"https://api.github.com/repos/readium/readium-shared-js/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/readium/readium-shared-js/issues/397/comments","events_url":"https://api.github.com/repos/readium/readium-shared-js/issues/397/events","html_url":"https://github.com/readium/readium-shared-js/issues/397","id":245685395,"number":397,"title":"Query : Use of _.debounce ","user":{"login":"nandita121189","id":13463752,"avatar_url":"https://avatars0.githubusercontent.com/u/13463752?v=4","gravatar_id":"","url":"https://api.github.com/users/nandita121189","html_url":"https://github.com/nandita121189","followers_url":"https://api.github.com/users/nandita121189/followers","following_url":"https://api.github.com/users/nandita121189/following{/other_user}","gists_url":"https://api.github.com/users/nandita121189/gists{/gist_id}","starred_url":"https://api.github.com/users/nandita121189/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandita121189/subscriptions","organizations_url":"https://api.github.com/users/nandita121189/orgs","repos_url":"https://api.github.com/users/nandita121189/repos","events_url":"https://api.github.com/users/nandita121189/events{/privacy}","received_events_url":"https://api.github.com/users/nandita121189/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-26T11:05:20Z","updated_at":"2017-07-27T04:51:13Z","closed_at":null,"body":"Can you please explain the use of the following line in `reflowable_view.js`\r\n\r\n```\r\n_.debounce(updatePagination_, 100);\r\n```\r\nThis line is causing the `updatePagination_` function to be called twice on window resize, due to which a flickering is observed after the window resizes. \r\n\r\nIf I rewrite the code after removing the `_.debounce`, then flickering no longer occurs.\r\n```\r\n var updatePagination = updatePagination_; \r\n```\r\n\r\n\r\nCan you please guide me if rewriting the code can cause any regression issues. ?"},"comment":{"url":"https://api.github.com/repos/readium/readium-shared-js/issues/comments/318257905","html_url":"https://github.com/readium/readium-shared-js/issues/397#issuecomment-318257905","issue_url":"https://api.github.com/repos/readium/readium-shared-js/issues/397","id":318257905,"user":{"login":"nandita121189","id":13463752,"avatar_url":"https://avatars0.githubusercontent.com/u/13463752?v=4","gravatar_id":"","url":"https://api.github.com/users/nandita121189","html_url":"https://github.com/nandita121189","followers_url":"https://api.github.com/users/nandita121189/followers","following_url":"https://api.github.com/users/nandita121189/following{/other_user}","gists_url":"https://api.github.com/users/nandita121189/gists{/gist_id}","starred_url":"https://api.github.com/users/nandita121189/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nandita121189/subscriptions","organizations_url":"https://api.github.com/users/nandita121189/orgs","repos_url":"https://api.github.com/users/nandita121189/repos","events_url":"https://api.github.com/users/nandita121189/events{/privacy}","received_events_url":"https://api.github.com/users/nandita121189/received_events","type":"User","site_admin":false},"created_at":"2017-07-27T04:51:13Z","updated_at":"2017-07-27T04:51:13Z","body":"Thanks @danielweck , the solution you suggested worked. Now the `updatePagination_  `function is called only once on window resize and flickering doesn't occur."}}
{"actor":{"display_login":"nandita121189"}}