{"action":"created","issue":{"url":"https://api.github.com/repos/David-Mulder/paper-datatable/issues/69","labels_url":"https://api.github.com/repos/David-Mulder/paper-datatable/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/David-Mulder/paper-datatable/issues/69/comments","events_url":"https://api.github.com/repos/David-Mulder/paper-datatable/issues/69/events","html_url":"https://github.com/David-Mulder/paper-datatable/issues/69","id":124036202,"number":69,"title":"Formatting function not working","user":{"login":"go4cas","id":12674784,"avatar_url":"https://avatars.githubusercontent.com/u/12674784?v=3","gravatar_id":"","url":"https://api.github.com/users/go4cas","html_url":"https://github.com/go4cas","followers_url":"https://api.github.com/users/go4cas/followers","following_url":"https://api.github.com/users/go4cas/following{/other_user}","gists_url":"https://api.github.com/users/go4cas/gists{/gist_id}","starred_url":"https://api.github.com/users/go4cas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go4cas/subscriptions","organizations_url":"https://api.github.com/users/go4cas/orgs","repos_url":"https://api.github.com/users/go4cas/repos","events_url":"https://api.github.com/users/go4cas/events{/privacy}","received_events_url":"https://api.github.com/users/go4cas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-28T08:46:41Z","updated_at":"2015-12-29T09:44:47Z","closed_at":null,"body":"I have the following table column definition:\r\n```html\r\n<paper-datatable-column header=\"amount\" property=\"paymentAmount\" format-value=\"{{cellCurrencyFormat}}\" align=\"right\"></paper-datatable-column>\r\n```\r\nThe ``cellCurrencyFormat`` function is in an external script file, containing helper functions that are used throughout the application.\r\n```javascript\r\ncellCurrencyFormat = function (value) {\r\n  var cellFormat = formatCurrency (value, 'R', 2);\r\n  console.log(cellFormat);\r\n  return cellFormat;\r\n};\r\n```\r\nThis function is a wrapper around the main formatting function:\r\n```javascript\r\nfunction formatCurrency (value, currency, precision) {\r\n  if (!value) {\r\n    return '';\r\n  };\r\n  if (isNaN(value)) {\r\n    return \"Value is not a Number\";\r\n  } else {\r\n    currency = currency || \"$\";\r\n    precision = precision || 2;\r\n    value = Number(value);\r\n    value = value.toFixed(precision);\r\n  }\r\n  var parts = value.split('.'),\r\n    fnum = parts[0],\r\n    decimal = parts[1] ? '.' + parts[1] : '';\r\n  return currency + fnum.replace(/(\\d)(?=(?:\\d{3})+$)/g, '$1,') + decimal;\r\n};\r\n```\r\n\r\nThe ``console.log`` in the ``cellCurrencyFormat`` does not fire at all."},"comment":{"url":"https://api.github.com/repos/David-Mulder/paper-datatable/issues/comments/167757378","html_url":"https://github.com/David-Mulder/paper-datatable/issues/69#issuecomment-167757378","issue_url":"https://api.github.com/repos/David-Mulder/paper-datatable/issues/69","id":167757378,"user":{"login":"David-Mulder","id":46602,"avatar_url":"https://avatars.githubusercontent.com/u/46602?v=3","gravatar_id":"","url":"https://api.github.com/users/David-Mulder","html_url":"https://github.com/David-Mulder","followers_url":"https://api.github.com/users/David-Mulder/followers","following_url":"https://api.github.com/users/David-Mulder/following{/other_user}","gists_url":"https://api.github.com/users/David-Mulder/gists{/gist_id}","starred_url":"https://api.github.com/users/David-Mulder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/David-Mulder/subscriptions","organizations_url":"https://api.github.com/users/David-Mulder/orgs","repos_url":"https://api.github.com/users/David-Mulder/repos","events_url":"https://api.github.com/users/David-Mulder/events{/privacy}","received_events_url":"https://api.github.com/users/David-Mulder/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T09:44:47Z","updated_at":"2015-12-29T09:44:47Z","body":"That's so odd, once I have access to my development environment I will check and try figuring out what could be happening."}}