View Full Version : [OPEN] UpdateManager.startAutoRefresh behavior
28 Sep 2006, 10:15 AM
If you call this fn with refreshNow=true, it invokes the passed callback. However, if refreshNow=false, it does setInterval without passing the callback, which means you'd have to do mgr.update.subscribe(callback). Is this how it should be, or should you be able to pass '...callback, false' to startAutoRefresh, without doing a subscribe?
28 Sep 2006, 10:51 AM
There's no reason the callback (and params) shouldn't be included. This is an oversight on my part. The correction will be in the .32.1 release. Until then, if you want to paste it in, I've changed the setInterval line (224) to read:
this.autoRefreshProcId = setInterval(this.update.createDelegate(this,
[url || this.defaultUrl, params, callback, true]), interval*1000);
28 Sep 2006, 12:21 PM
No problem - happy to contribute a little something to your efforts :)
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.