angular-poller.js
function(target, options) {
                        var poller = findPoller(target);

                        if (!poller) {
                            poller = new Poller(target, options);
                            pollers.push(poller);
                            poller.start();
                        } else {
                            poller.set(options);
                            poller.restart();
                        }

                        return poller;
                    }
function(target, options) {
                        var poller = findPoller(target);

                        if (!poller) {
                            poller = new Poller(target, options);
                            pollers.push(poller);
                            poller.start();
                        } else {
                            poller.set(options);
                            poller.restart();
                        }

                        return poller;
                    }
function ( target , options ) { var poller = findPoller ( target ) ; if ( ! poller ) { poller = new Poller ( target , options ) ; pollers . push ( poller ) ; poller . start ( ) ; } else { poller . set ( options ) ; poller . restart ( ) ; } return poller ; }
Return a singleton instance of a poller. If poller does
not exist, then register and start it. Otherwise return
it and restart it if necessary.

@param target
@param options
@returns {object}
Return a singleton instance of a poller . If poller does not exist then register and start it . Otherwise return it and restart it if necessary .