Permalink
Browse files

Stricter checking of parameters for $.transit.

  • Loading branch information...
1 parent 8c1e9c3 commit 3196aa1326edeb8a751e707a2bda7a46b3a28baa @rstacruz committed Jan 24, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 jquery.transit.js
View
@@ -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;
}

0 comments on commit 3196aa1

Please sign in to comment.