Skip to content
This repository
Browse code

Stricter checking of parameters for $.transit.

  • Loading branch information...
commit 3196aa1326edeb8a751e707a2bda7a46b3a28baa 1 parent 8c1e9c3
Rico Sta. Cruz authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 jquery.transit.js
8 jquery.transit.js
@@ -440,22 +440,22 @@
440 440 }
441 441
442 442 // Alternate syntax.
443   - if (properties.easing) {
  443 + if (typeof properties.easing !== 'undefined') {
444 444 easing = properties.easing;
445 445 delete properties.easing;
446 446 }
447 447
448   - if (properties.duration) {
  448 + if (typeof properties.duration !== 'undefined') {
449 449 duration = properties.duration;
450 450 delete properties.duration;
451 451 }
452 452
453   - if (properties.complete) {
  453 + if (typeof properties.complete !== 'undefined') {
454 454 callback = properties.complete;
455 455 delete properties.complete;
456 456 }
457 457
458   - if (properties.queue !== undefined) {
  458 + if (typeof properties.queue !== 'undefined') {
459 459 queue = properties.queue;
460 460 delete properties.queue;
461 461 }

0 comments on commit 3196aa1

Please sign in to comment.
Something went wrong with that request. Please try again.