Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@megamattron
Created May 31, 2012 14:38
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 megamattron/2843824 to your computer and use it in GitHub Desktop.
Save megamattron/2843824 to your computer and use it in GitHub Desktop.
var testerWidth = testSubject.width(),
newWidth = (testerWidth + o.comfortZone) >= minWidth ? testerWidth + o.comfortZone : minWidth,
currentWidth = input.width(),
isValidWidthChange = (newWidth < currentWidth && newWidth >= minWidth)
|| (newWidth > minWidth && newWidth < o.maxWidth);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment