Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: chrome/third_party/mock4js/examples/PriceService.js

Issue 347283004: Convert mock4js line endings to LF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/third_party/mock4js/examples/PriceServiceTest.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * PriceCache 2 * PriceCache
3 */ 3 */
4 function PriceCache() { 4 function PriceCache() {
5 } 5 }
6 6
7 PriceCache.prototype = { 7 PriceCache.prototype = {
8 getCachedPrice: function(instrumentId) { 8 getCachedPrice: function(instrumentId) {
9 }, 9 },
10 setCachedPrice: function(instrumentId, price) { 10 setCachedPrice: function(instrumentId, price) {
(...skipping 23 matching lines...) Expand all
34 PriceService.prototype = { 34 PriceService.prototype = {
35 getPrice: function(instrumentId) { 35 getPrice: function(instrumentId) {
36 var price = this._priceCache.getCachedPrice(instrumentId); 36 var price = this._priceCache.getCachedPrice(instrumentId);
37 if(price==null) { 37 if(price==null) {
38 price = this._priceFetcher.getPriceFromServer(instrument Id); 38 price = this._priceFetcher.getPriceFromServer(instrument Id);
39 this._priceCache.setCachedPrice(instrumentId, price); 39 this._priceCache.setCachedPrice(instrumentId, price);
40 } 40 }
41 return price; 41 return price;
42 } 42 }
43 } 43 }
OLDNEW
« no previous file with comments | « no previous file | chrome/third_party/mock4js/examples/PriceServiceTest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698