{"action":"created","issue":{"url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/34","labels_url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/34/comments","events_url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/34/events","html_url":"https://github.com/ManuelDeLeon/viewmodel/issues/34","id":69142909,"number":34,"title":"if/ visible don't work","user":{"login":"zimt28","id":1764689,"avatar_url":"https://avatars.githubusercontent.com/u/1764689?v=3","gravatar_id":"","url":"https://api.github.com/users/zimt28","html_url":"https://github.com/zimt28","followers_url":"https://api.github.com/users/zimt28/followers","following_url":"https://api.github.com/users/zimt28/following{/other_user}","gists_url":"https://api.github.com/users/zimt28/gists{/gist_id}","starred_url":"https://api.github.com/users/zimt28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimt28/subscriptions","organizations_url":"https://api.github.com/users/zimt28/orgs","repos_url":"https://api.github.com/users/zimt28/repos","events_url":"https://api.github.com/users/zimt28/events{/privacy}","received_events_url":"https://api.github.com/users/zimt28/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-17T13:49:31Z","updated_at":"2015-04-17T14:53:54Z","closed_at":"2015-04-17T14:53:54Z","body":"Edit: The repo is useless as it just didn't work there, because I forgot to add `coffeescript`.  But the error is there for me.\r\n\r\nSo here's some code:\r\n```\r\ntemplate = Template.QuoteMask\r\n\r\ntemplate.viewmodel 'quotemask',\r\n  showDiv: false\r\n  onRendered: ->\r\n\r\n    // Output:\r\n    // [Log] false (app-quotes.js, line 1009, x2)\r\n    console.log @showDiv()\r\n```\r\n```\r\n<template name=\"QuoteMask\">\r\n  <div data-bind=\"if: showDiv\">Should be hidden</div>\r\n  <div data-bind=\"if: !showDiv\">Should be visible</div>\r\n</template>\r\n```\r\n\r\nBoth messages appear on the screen for some reason."},"comment":{"url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/comments/94001888","html_url":"https://github.com/ManuelDeLeon/viewmodel/issues/34#issuecomment-94001888","issue_url":"https://api.github.com/repos/ManuelDeLeon/viewmodel/issues/34","id":94001888,"user":{"login":"zimt28","id":1764689,"avatar_url":"https://avatars.githubusercontent.com/u/1764689?v=3","gravatar_id":"","url":"https://api.github.com/users/zimt28","html_url":"https://github.com/zimt28","followers_url":"https://api.github.com/users/zimt28/followers","following_url":"https://api.github.com/users/zimt28/following{/other_user}","gists_url":"https://api.github.com/users/zimt28/gists{/gist_id}","starred_url":"https://api.github.com/users/zimt28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimt28/subscriptions","organizations_url":"https://api.github.com/users/zimt28/orgs","repos_url":"https://api.github.com/users/zimt28/repos","events_url":"https://api.github.com/users/zimt28/events{/privacy}","received_events_url":"https://api.github.com/users/zimt28/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T14:53:54Z","updated_at":"2015-04-17T14:53:54Z","body":"Solved it. It does actually work, but when I change the default value, `viewmodel` will use the saved one."}}