tom
tom

Reputation: 1

Can someone help me solve this timer problem in a plugin?

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

Answers (2)

SLaks
SLaks

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

m4tt1mus
m4tt1mus

Reputation: 1641

you have two semi-colons for starters:

//start the timer
timerFunction();;

Upvotes: 0

Related Questions