Skip to content

Conversation

AndrewDavid
Copy link

Using Version 0.3

  • Added the exists method to check if a specific interval is already defined and optionally checks if it is currently stopped
  • Updated timer object to include active element. This indicates whether the interval is currently stopped
  • Updated the start method to allow re-activating a previously stopped interval: Poll.start('name');
  • Updated objects on lines 18 & 19 (now lines 33 & 34) to use dot notation

Here is a fiddle that demonstrates the feature: http://jsfiddle.net/AndrewDavidJ/ZzJ8R/

+ ‘exists’ method
^ stop method now uses exists method before attempting to stop interval
^ changed objects on line 18 & 19 to use dot notation
+ you can re-activate a previously created interval
^ exists method also checks whether interval is active
^ minified changes
^ properly minified poll.min.js
@ahme-d
Copy link

ahme-d commented Jun 27, 2017

+1 for this

1 similar comment
@andro23
Copy link

andro23 commented May 29, 2019

+1 for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants