on master help sign in
cosmetic: improve whitespace consistency
commit6286f7b7a85c99ae92e2db0deed7464999024df7 authorEvan Czaplicki <info@elm-lang.org> dateWed 20 Aug 2014, 12:53 (12 years ago) parentf098af5
1 file changed+49−35
libraries/Native/Basics.js+49−35
libraries/Native/Basics.js+49−35
@@ -8,15 +8,29 @@ Elm.Native.Basics.make = function(elm) {
88 var JS = Elm.Native.JavaScript.make(elm);
99 var Utils = Elm.Native.Utils.make(elm);
1010
11− function div(a,b) { return (a/b)|0; }
12− function rem(a,b) { return a % b; }
11+ function div(a, b) {
12+ return (a/b)|0;
13+ }
14+ function rem(a, b) {
15+ return a % b;
16+ }
1317 var mod = Utils.mod;
14− function logBase(base,n) { return Math.log(n) / Math.log(base); }
15− function xor(a,b) { return a !== b; }
16− function not(b) { return !b; }
17− function isInfinite(n) { return n === Infinity || n === -Infinity }
18+ function logBase(base, n) {
19+ return Math.log(n) / Math.log(base);
20+ }
21+ function xor(a, b) {
22+ return a !== b;
23+ }
24+ function not(b) {
25+ return !b;
26+ }
27+ function isInfinite(n) {
28+ return n === Infinity || n === -Infinity
29+ }
1830
19− function truncate(n) { return n|0; }
31+ function truncate(n) {
32+ return n|0;
33+ }
2034
2135 function degrees(d) {
2236 return d * Math.PI / 180;
@@ -36,39 +50,39 @@ Elm.Native.Basics.make = function(elm) {
3650 }
3751
3852 var basics = {
39− div:F2(div),
40− rem:F2(rem),
41− mod:mod,
53+ div: F2(div),
54+ rem: F2(rem),
55+ mod: mod,
4256
43− pi:Math.PI,
44− e:Math.E,
45− cos:Math.cos,
46− sin:Math.sin,
47− tan:Math.tan,
48− acos:Math.acos,
49− asin:Math.asin,
50− atan:Math.atan,
51− atan2:F2(Math.atan2),
57+ pi: Math.PI,
58+ e: Math.E,
59+ cos: Math.cos,
60+ sin: Math.sin,
61+ tan: Math.tan,
62+ acos: Math.acos,
63+ asin: Math.asin,
64+ atan: Math.atan,
65+ atan2: F2(Math.atan2),
5266
53− degrees: degrees,
54− turns: turns,
55− fromPolar: fromPolar,
56− toPolar: toPolar,
67+ degrees: degrees,
68+ turns: turns,
69+ fromPolar: fromPolar,
70+ toPolar: toPolar,
5771
58− sqrt:Math.sqrt,
59− logBase:F2(logBase),
60− compare:Utils.compare,
72+ sqrt: Math.sqrt,
73+ logBase: F2(logBase),
74+ compare: Utils.compare,
6175
62− xor:F2(xor),
63− not:not,
76+ xor: F2(xor),
77+ not: not,
6478
65− truncate:truncate,
66− ceiling:Math.ceil,
67− floor:Math.floor,
68− round:Math.round,
69− toFloat:function(x) { return x; },
70− isNaN:isNaN,
71− isInfinite:isInfinite
79+ truncate: truncate,
80+ ceiling: Math.ceil,
81+ floor: Math.floor,
82+ round: Math.round,
83+ toFloat: function(x) { return x; },
84+ isNaN: isNaN,
85+ isInfinite: isInfinite
7286 };
7387
7488 return elm.Native.Basics.values = basics;