Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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