Skip to content

Commit

Permalink
Added ios delay capability to be a function
Browse files Browse the repository at this point in the history
  • Loading branch information
kentmw committed Oct 16, 2015
1 parent 8fc1c33 commit e6bb659
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions www/NativePageTransitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,13 @@ function setupDelayOptions(opts, whichOS) {
opts.androiddelay = -1;
}
}
if (whichOS.ios && (opts.iosdelay == undefined || opts.iosdelay == "null")) {
opts.iosdelay = globalOptions.iosdelay;
if (whichOS.ios) {
if (opts.iosdelay == undefined || opts.iosdelay == "null")) {
opts.iosdelay = globalOptions.iosdelay;
} else if (typeof opts.iosdelay == 'function') {
callbacks.push(opts.iosdelay);
opts.iosdelay = -1;
}
}
if (whichOS.winphone && (opts.winphonedelay == undefined || opts.winphonedelay == "null")) {
opts.winphonedelay = globalOptions.winphonedelay;
Expand Down

0 comments on commit e6bb659

Please sign in to comment.