Skip to content

Commit

Permalink
More l33t JS (thanks to Ricky!)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Socol committed Mar 17, 2011
1 parent 7fdc55c commit 3f7e51e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions waffle/templates/waffle/waffle.js
Expand Up @@ -3,9 +3,6 @@
{% for flag, value in flags %}'{{ flag }}': {% if value %}true{% else %}false{% endif %}{% if not forloop.last %},{% endif %}{% endfor %}
};
window.waffle = function waffle(flag) {
if (typeof FLAGS[flag] == 'undefined') {
return false;
}
return FLAGS[flag];
return !!FLAGS[flag];
};
})();

0 comments on commit 3f7e51e

Please sign in to comment.