deprecate toggleClass 'force' option #2223

Closed
ibolmo opened this Issue Jan 19, 2012 · 1 comment

Comments

Projects
None yet
3 participants
Owner

ibolmo commented Jan 19, 2012

(from Lighthouse)

ToggleClass has an odd 'force' option which forces an addClass / removeClass.

Why is this :) Seems odd to me.

cd5ec77

+1

Simply

return this[this.hasClass(className) ? 'removeClass' : 'addClass'](className);

fakedarren closed this Jul 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment