equal
deleted
inserted
replaced
22 |
22 |
23 // set callback |
23 // set callback |
24 var self = this; |
24 var self = this; |
25 this.httpReq.onreadystatechange = function() { self.readyStateChanged(); }; |
25 this.httpReq.onreadystatechange = function() { self.readyStateChanged(); }; |
26 |
26 |
27 var fullURL = this.feedAddress; |
|
28 if (fullURL.indexOf("?") == -1) { |
|
29 fullURL += "?"; |
|
30 } else { |
|
31 fullURL += "&"; |
|
32 } |
|
33 fullURL += "nocache=" + (new Date().getTime()); |
|
34 |
|
35 // initiate the request |
27 // initiate the request |
36 this.httpReq.open("GET", fullURL, true); |
28 this.httpReq.open("GET", nocache(this.feedAddress), true); |
37 this.httpReq.send(null); |
29 this.httpReq.send(null); |
38 } |
30 } |
39 |
31 |
40 // has been fetched and parsed, or if the process results in an error. |
32 // has been fetched and parsed, or if the process results in an error. |
41 FeedUpdateBroker.prototype.fetchFeed = function(feedURL, callback) { |
33 FeedUpdateBroker.prototype.fetchFeed = function(feedURL, callback) { |