Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Created February 5, 2011 04:36
Show Gist options
  • Select an option

  • Save heapwolf/812209 to your computer and use it in GitHub Desktop.

Select an option

Save heapwolf/812209 to your computer and use it in GitHub Desktop.
unobstrusive.jsdom ideas
var d = { foo: [{ /* ... */ }], bla: 123123 };
{
".name[foo]": { "foo": "bla" },
".foo": "/foo.html",
".bazz": {
data: d.foo,
map: function(node, data) {
node.innerHTML = data.foo;
return node;
}
},
"#bar": { "/bar.html": "bar.json" }
}
$(".foo, #abc").source(d).map();
$(".foo")
.data({})
.map(function() {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment