Skip to content

Instantly share code, notes, and snippets.

@andrewn
Created October 19, 2010 16:15
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 andrewn/634483 to your computer and use it in GitHub Desktop.
Save andrewn/634483 to your computer and use it in GitHub Desktop.
Make ternary action explicit using variable names
var KEEP = true,
DISCARD = false,
items = this.container.get( slotClass ).filter(
function ( item ) {
return glow.dom.get( this ).hasClass( inactiveClass ) ? DISCARD : KEEP ;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment