Skip to content

Commit

Permalink
Stricter checking of parameters for $.transit.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Jan 24, 2012
1 parent 8c1e9c3 commit 3196aa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jquery.transit.js
Expand Up @@ -440,22 +440,22 @@
} }


// Alternate syntax. // Alternate syntax.
if (properties.easing) { if (typeof properties.easing !== 'undefined') {
easing = properties.easing; easing = properties.easing;
delete properties.easing; delete properties.easing;
} }


if (properties.duration) { if (typeof properties.duration !== 'undefined') {
duration = properties.duration; duration = properties.duration;
delete properties.duration; delete properties.duration;
} }


if (properties.complete) { if (typeof properties.complete !== 'undefined') {
callback = properties.complete; callback = properties.complete;
delete properties.complete; delete properties.complete;
} }


if (properties.queue !== undefined) { if (typeof properties.queue !== 'undefined') {
queue = properties.queue; queue = properties.queue;
delete properties.queue; delete properties.queue;
} }
Expand Down

0 comments on commit 3196aa1

Please sign in to comment.