Created
October 19, 2010 16:15
-
-
Save andrewn/634483 to your computer and use it in GitHub Desktop.
Make ternary action explicit using variable names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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