Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stricter checking of parameters for $.transit.

  • Loading branch information...
commit 3196aa1326edeb8a751e707a2bda7a46b3a28baa 1 parent 8c1e9c3
@rstacruz authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 jquery.transit.js
View
8 jquery.transit.js
@@ -440,22 +440,22 @@
}
// Alternate syntax.
- if (properties.easing) {
+ if (typeof properties.easing !== 'undefined') {
easing = properties.easing;
delete properties.easing;
}
- if (properties.duration) {
+ if (typeof properties.duration !== 'undefined') {
duration = properties.duration;
delete properties.duration;
}
- if (properties.complete) {
+ if (typeof properties.complete !== 'undefined') {
callback = properties.complete;
delete properties.complete;
}
- if (properties.queue !== undefined) {
+ if (typeof properties.queue !== 'undefined') {
queue = properties.queue;
delete properties.queue;
}
Please sign in to comment.
Something went wrong with that request. Please try again.