When only a millisecond based period is provided (e.g. "45 milliseconds"), the period is recognized as minutes ("45m"). This commit adds a word boundary check to the tokenizer regex to distinguish between minutes and milliseconds.
…Timeout and setInterval ids. This reference contains a cancel() and start() function for resetting timers.
…ne unit. Allows `Timed.every('minute', callback);`
…arguments into a unified string which is then parsed via a regex. This significantly reduces the file size of Timed, as we no longer need a collection of all the valid unit types.
- Merged sub-functions into main create_timer function. Unnecessary abstraction - Removed quotes around valid_types contents - Parsing of units from a 2 argument call now strips all non-alpha characters instead of relying on a float formatting to a string properly. - Switched to Google Closure Compiler for minified source - Other minor tweaks to save characters where possible.
…l documentation needed