summaryrefslogtreecommitdiff
path: root/elm/Lib/Ffi.js
blob: c1c9baf88e12c7fc78635ff0009fc976e8a0551a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
window.elmFfi_innerHtml = function(wrap,call) { // \s -> _VirtualDom_property('innerHTML', _Json_wrap(s))
    return function(s) {
        return {
            $: 'a2',
            n: 'innerHTML',
            o: wrap(s)
        }
    }
};

window.elmFfi_elemCall = function(wrap,call) { // _Browser_call
    return call
};

window.elmFfi_fmtFloat = function(wrap,call) {
    return function(val) {
        return function(prec) {
            return val.toLocaleString('en-US', { minimumFractionDigits: prec, maximumFractionDigits: prec });
        }
    }
};