Skip to content

Instantly share code, notes, and snippets.

@rafshar
rafshar / gist:1580553
Created January 9, 2012 01:55
backbone view troubleshooting
App.Views.LayerGroupSelect = Backbone.View.extend({
tagName: 'li',
events: {
'click .group_header': 'toggleEnabled',
},
toggleEnabled: function() {
this.model.toggleEnabled();
<script id="layer_group" type="text/html">
<div class="group_header"><input type="checkbox" class="layer_status"{{#enabled}} checked{{/enabled}}> {{name}}</div>
{{>options_safety}}
</script>
<script id="options_safety" class="partial" type="text/html">
@rafshar
rafshar / keybase.md
Created April 10, 2014 08:28
keybase.md

Keybase proof

I hereby claim:

  • I am rafshar on github.
  • I am rod (https://keybase.io/rod) on keybase.
  • I have a public key whose fingerprint is A5BC 58F5 909A 03BB 7801 2331 D3A7 4487 83ED D8CE

To claim this, I am signing this object: