Closed ducdigital closed 8 years ago
I'm having a Uncaught ReferenceError: fx is not defined
when I tried to implement this version. But if I rollback to v0.2 it fixes the problem. Don't know why though
Hi,
Can you redownload the files from here : https://github.com/ducdigital/money.js/blob/master/money.js
That error should no longer be anywhere in the code since I chaged the way it handle errors and the error should be clearer.
I suspect that the file you are using is an older file. Can you make sure that it is the latest from my repo?
Are you using it in frontend or backend? The frontend min file has been removed in my package and i suggest you use your favorite minifier to minify it if needed
On Tuesday, February 23, 2016, norman santiago <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:
I'm having a Uncaught ReferenceError: fx is not defined when I tried to implement this version. But if I rollback to v0.2 it fixes the problem. Don't know why though
— Reply to this email directly or view it on GitHub https://github.com/openexchangerates/money.js/pull/26#issuecomment-187604836 .
I re-download the file and even checked the source code rendered in the page. But the error is still there.
This version is maintained here: https://github.com/ducdigital/money.js Feel free to give comment, add more tests and new feature in a PR.
In this version all API of money.js remain the same but introduce new features to this project.
Change Log
0.3.0
fx error
. Thanks @sliptree: (https://github.com/sliptree/money.js/commit/c76476456f1acef18c0b2441d36de3f55ae3650b). For: #24fx.getRate(to, from)
allow getting rate from any 2 currencies. Inspired by (@thewarpaint): (https://github.com/thewarpaint/money.js/commit/85eed2df55c3022ac6fe7fe83911ecf2a2b8a25d). For: #4getRate()