Signed-off-by: Jason Etheridge <jason@esilibrary.com>
window.removeEventListener('unload',obj.clear_timer,false);
}
},
+ // a simpler version of chain, but doesn't have all the same features
+ 'chain2' : function(args) {
+ var obj = this;
+ obj.timer(
+ args.concat(
+ function() {
+ try {
+ obj.clear_timer();
+ } catch(E) {
+ alert('error in chain2: ' + E);
+ }
+ }
+ ),
+ 0
+ );
+ },
// This executes a series of functions, but tries to give other events/functions a chance to
// execute between each one.
'chain' : function () {
funcs.push( gen_func(results[i]) );
}
JSAN.use('util.exec'); var exec = new util.exec(4);
- exec.chain( funcs );
+ exec.chain2( funcs );
} catch(E) {
this.error.standard_unexpected_error_alert('patron.search_result.search',E);