Skip to content

fix(timer): setTimeout/setInterval support for boolean period - #7569

Merged
vakrilov merged 7 commits into
masterfrom
bundev/fix-boolean-settimeout
Aug 2, 2019
Merged

fix(timer): setTimeout/setInterval support for boolean period#7569
vakrilov merged 7 commits into
masterfrom
bundev/fix-boolean-settimeout

Conversation

@bundyo

@bundyo bundyo commented Jul 23, 2019

Copy link
Copy Markdown
Contributor

PR Checklist

What is the current behavior?

setTimeout/setInterval can't be called with Boolean period.

What is the new behavior?

setTimeout/setInterval can be called with a Boolean period - cast to either 0 or 1.

Fixes/Implements/Closes #7567.

@bundyo bundyo added the bug label Jul 23, 2019
@bundyo bundyo self-assigned this Jul 23, 2019
@cla-bot cla-bot Bot added the cla: yes label Jul 23, 2019
Comment thread tns-core-modules/timer/timer.d.ts Outdated
@vakrilov

Copy link
Copy Markdown
Contributor

test

@manoldonev manoldonev changed the title fix(timer) Fix setTimeout/setInterval can't be called with boolean period fix(timer): setTimeout/setInterval support for boolean period Aug 1, 2019
@vakrilov
vakrilov merged commit a569bb2 into master Aug 2, 2019
@vakrilov
vakrilov deleted the bundev/fix-boolean-settimeout branch August 2, 2019 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different casting rules in setTimeout/setInterval in nativescript

4 participants