Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 81f89d7

Browse files
refactor(bitcoin): use leading '_' to idicate private property
1 parent 1f6d46e commit 81f89d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/App.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ App.prototype.intlNumFormat = function(numberToFormat, maxDigits = 8) {
131131
};
132132

133133
App.prototype.getBitcoinUnit = function() {
134-
if (!this.bitcoinUnit) {
135-
this.bitcoinUnit = localStorage.getItem('BitcoinUnit') || 'BTC';
134+
if (!this._bitcoinUnit) {
135+
this._bitcoinUnit = localStorage.getItem('BitcoinUnit') || 'BTC';
136136
}
137-
return this.bitcoinUnit;
137+
return this._bitcoinUnit;
138138
};
139139

140140
App.prototype.setBitcoinUnit = function(unit) {
141-
this.bitcoinUnit = unit;
141+
this._bitcoinUnit = unit;
142142
localStorage.setItem('BitcoinUnit', unit);
143143
};
144144

0 commit comments

Comments
 (0)