![]() |
[jQuery] setTimeout issue
Hey all,
as I mentioned in the title, I've an issue getting setTimeout to work inside a plugin I am developing. Code:
$.Plugin = function(obj,opt)Anyone dealt with this before? Cheers |
Quote:
Code:
$.Plugin = function(obj,opt) |
The problem is that javascript can not find
heartbeat() when it's being run. You should either declare your function out of the plugin (global namespace) or refer to your function with the full path ($.plugin.func()). Of course you'd need to rewrite your code a little...Code:
function heartbeat() { ... }; |
| All times are GMT +1. The time now is 09:02 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.