{"action":"created","issue":{"url":"https://api.github.com/repos/shabeer-ali-m/jPut/issues/12","labels_url":"https://api.github.com/repos/shabeer-ali-m/jPut/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/shabeer-ali-m/jPut/issues/12/comments","events_url":"https://api.github.com/repos/shabeer-ali-m/jPut/issues/12/events","html_url":"https://github.com/shabeer-ali-m/jPut/issues/12","id":111123844,"number":12,"title":"Multiple img with jsrc doesn't work","user":{"login":"usmjc","id":6818117,"avatar_url":"https://avatars.githubusercontent.com/u/6818117?v=3","gravatar_id":"","url":"https://api.github.com/users/usmjc","html_url":"https://github.com/usmjc","followers_url":"https://api.github.com/users/usmjc/followers","following_url":"https://api.github.com/users/usmjc/following{/other_user}","gists_url":"https://api.github.com/users/usmjc/gists{/gist_id}","starred_url":"https://api.github.com/users/usmjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmjc/subscriptions","organizations_url":"https://api.github.com/users/usmjc/orgs","repos_url":"https://api.github.com/users/usmjc/repos","events_url":"https://api.github.com/users/usmjc/events{/privacy}","received_events_url":"https://api.github.com/users/usmjc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-13T07:46:11Z","updated_at":"2015-10-13T08:54:23Z","closed_at":null,"body":"Hi !\r\nLove this plugin, but i've encountered a problem when setting multiple img-src's from JSON data.\r\nAs we know having the jsrc rather than src attribute will ensure that the browser won't try and load the image from the server before the json-data is ready.\r\n\r\nExample JSON : \r\njPut.list.data = [{\"name\":\"data1\",\r\n \"icon\":MODEL.staticUri+\"/icons/icon_data1.png\",\r\n \"currency\":MODEL.staticUri+\"/icons/ico_coins.png\"},\r\n\"name\":\"data2\",\r\n \"icon\":MODEL.staticUri+\"/icons/icon_data2.png\",\r\n \"currency\":MODEL.staticUri+\"/icons/ico_bills.png\"}];\r\n\r\nTemplate html:\r\n<div id=\"list\" jput=\"list\" jput-jsondata='[]'>\r\n  <div id=\"row{{index}}\">\r\n    <img id=\"icon\" jsrc=\"{{json.icon}}\"/>\r\n    <img id=\"currency_icon\" jsrc=\"{{json.currency}}\" />\r\n  </div>\r\n</div>\r\n\r\nThe second (#currency_icon) jsrc gets ignored. And when changing the 'jsrc' to 'src' it will work just fine, except that gets hit for the ressource : 'http://example.com/{{json.currency}}'.\r\n\r\nAny ideas ? Or if you can just provide an un-minified version of the jput-2.js, then i can look into this myself :-)"},"comment":{"url":"https://api.github.com/repos/shabeer-ali-m/jPut/issues/comments/147652382","html_url":"https://github.com/shabeer-ali-m/jPut/issues/12#issuecomment-147652382","issue_url":"https://api.github.com/repos/shabeer-ali-m/jPut/issues/12","id":147652382,"user":{"login":"usmjc","id":6818117,"avatar_url":"https://avatars.githubusercontent.com/u/6818117?v=3","gravatar_id":"","url":"https://api.github.com/users/usmjc","html_url":"https://github.com/usmjc","followers_url":"https://api.github.com/users/usmjc/followers","following_url":"https://api.github.com/users/usmjc/following{/other_user}","gists_url":"https://api.github.com/users/usmjc/gists{/gist_id}","starred_url":"https://api.github.com/users/usmjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmjc/subscriptions","organizations_url":"https://api.github.com/users/usmjc/orgs","repos_url":"https://api.github.com/users/usmjc/repos","events_url":"https://api.github.com/users/usmjc/events{/privacy}","received_events_url":"https://api.github.com/users/usmjc/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T08:54:23Z","updated_at":"2015-10-13T08:54:23Z","body":"sure thing !\r\n\r\nhttps://jsfiddle.net/jc_usm/rod13a4k/1/"}}