Reputation: 1
My code can be seen here: http://www.jsfiddle.net/wdJM2/ What I want to know is why my kill button doesn't stop the timer function in my plugin. Any solutions??
Upvotes: 0
Views: 46
Reputation: 887777
settings
is a local variable.
Each call to plugin
gets a separate variable.
Your second call does not affect the original settings
object.
Upvotes: 1
Reputation: 1641
you have two semi-colons for starters:
//start the timer
timerFunction();;
Upvotes: 0