≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Is there any list of polyfills for es3?
Posted by:
(you are not logged in)
Enter the missing letter in: "Int?rnational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Hi, setTimeout is technically not a part of JS specification. It's a part of window object, which is in its turn a part of browser. Or a part of node js api in case you're using node:) There is an action called "doLater" which you can download here. It's not exactly setTimeout, but it allows you to run the delayed action. https://www.ambiera.com/coppercube/download_extensions.html I believe, the exact implementation would be sort of specific, since you probably also would like to pass the node object as a part of delayed function context. Basically, I guess, the idea is to create a global object/array which will store all delayed function calls along with the time they should be executed. On calling setTimeout you add these to the array. Then you register onframe event which takes current time, goes through the array and checks which of the actions can be already executed, executes them, and removes from the array. For more polyfills you can check npm, which is a great source for any type of js code. For ex,: https://github.com/NeilFraser/JS-Polyfills I'll probably can check how this could be implemented tonight, in case you haven't find the answer by the time.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact