Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
marka
Commits
a0ac45f9
Commit
a0ac45f9
authored
Jan 27, 2016
by
Christopher Guess
Browse files
removed each and made a forloop
parent
f8401de4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
js/marka.js
js/marka.js
+9
-7
No files found.
js/marka.js
View file @
a0ac45f9
...
...
@@ -13,6 +13,7 @@ var dollar_multiplier_lookup_table = {
};
function
Marka
(
target
)
{
console
.
log
(
this
.
currencies_supported
());
this
.
setCurrency
(
"
eur
"
);
this
.
getValueInSetCurrency
(
200
,
"
usd
"
,
function
(
value
){
...
...
@@ -210,13 +211,14 @@ Marka.prototype.retreiveExchangeRates = function(currency_one, currency_two, cal
Marka
.
prototype
.
currencies_supported
=
function
(){
var
currencies
=
{};
$
.
each
(
currencies_available
,
function
(
i
,
val
){
var
symbol
=
val
.
resource
.
fields
.
symbol
.
substring
(
0
,
3
);
var
info
=
currency_info
[
symbol
];
if
(
info
){
currencies
[
symbol
]
=
info
;
}
})
for
(
var
index
=
1
;
index
<
currencies_available
.
length
;
index
++
){
var
val
=
currencies_available
[
index
];
var
symbol
=
val
.
resource
.
fields
.
symbol
.
substring
(
0
,
3
);
var
info
=
currency_info
[
symbol
];
if
(
info
){
currencies
[
symbol
]
=
info
;
}
}
return
currencies
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment