Skip to content

Instantly share code, notes, and snippets.

@hafriedlander
Created June 6, 2012 02:30
Show Gist options
  • Save hafriedlander/2879478 to your computer and use it in GitHub Desktop.
Save hafriedlander/2879478 to your computer and use it in GitHub Desktop.
Example of possible nesting system in Entwine.js
$('.holder').entwine({
MyProperty: 123,
myMethod: function() { ... },
onmatch: function() { ... },
'ul': $.entwine.nesting({
onmatch: function() { ... },
'li': $.entwine.nesting({
onmatch: function() { ... },
}),
'a.popup': $.entwine.nesting({
onclick: function() { ... }
})
},
'a.popup': $.entwine.nesting({
onclick: function() { ... },
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment