{"action":"closed","issue":{"url":"https://api.github.com/repos/scottjehl/picturefill/issues/478","labels_url":"https://api.github.com/repos/scottjehl/picturefill/issues/478/labels{/name}","comments_url":"https://api.github.com/repos/scottjehl/picturefill/issues/478/comments","events_url":"https://api.github.com/repos/scottjehl/picturefill/issues/478/events","html_url":"https://github.com/scottjehl/picturefill/issues/478","id":65999094,"number":478,"title":"picImg.currentSrc = picImg.src; with 'use strict'. Writing to read only property","user":{"login":"andrew-jg","id":1414783,"avatar_url":"https://avatars.githubusercontent.com/u/1414783?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew-jg","html_url":"https://github.com/andrew-jg","followers_url":"https://api.github.com/users/andrew-jg/followers","following_url":"https://api.github.com/users/andrew-jg/following{/other_user}","gists_url":"https://api.github.com/users/andrew-jg/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-jg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-jg/subscriptions","organizations_url":"https://api.github.com/users/andrew-jg/orgs","repos_url":"https://api.github.com/users/andrew-jg/repos","events_url":"https://api.github.com/users/andrew-jg/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-jg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-04-02T19:51:38Z","updated_at":"2015-04-09T15:19:25Z","closed_at":"2015-04-09T15:19:25Z","body":"In src/picturefill.js, line 458 is:\r\n```\r\npicImg.currentSrc = picImg.src;  \r\n```\r\ncurrentSrc is a read only property. So this line does nothing in all major browsers. The currentSrc is updated when the src is, and that's done the line before. Not only does it do nothing, but since \"use strict\"; is used, some browsers will throw exceptions for trying to modify a read only property.\r\n\r\nIf you remove this line nothing will break and you will have improved your browser compatibility. New versions of IE throw the exception and the canary version of Chrome does as well :)"}}