I writing a plugin that does some toggling and I need a way to check what easing methods are available. I want to support the jQuery UI easing methods when available. It looks like those are in the effects package in the custom builder but, since that could be unchecked, it doesn't seem sufficient to check that jQuery UI is available. I want to check specifically that the easing methods are available.
you can check it this way:
if ( $.easing && $.easing.easeInOutQuad ) {
// Use easing function easeInOutQuad
} else {
// Use some other stuff
}
See from line 597
in UI core (http://jqueryui.com/ui/jquery.effects.core.js) .
Link it broken but it should still work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With