Skip to content

Instantly share code, notes, and snippets.

@danieltreacy
Created August 22, 2011 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danieltreacy/1161478 to your computer and use it in GitHub Desktop.
Save danieltreacy/1161478 to your computer and use it in GitHub Desktop.
Select box pre-selection in PURE
var directive = {
".select-box option@selected": function(arg) {
if (arg.item.someKey = "someValue") { return true }
else { ... }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment