@@ -7,21 +7,11 @@ Elm.Main.make = function (_elm) {
77 var _op = {};
88 var students = Elm.Native.Port.make(_elm).outbound("students",
99 function (v) {
10− return Elm.Native.List.make(_elm).toArray(v).map(function (v) {
11− return {name: v.name,age: v.age};
12− });
10+ return Elm.Native.List.make(_elm).toArray(v).map(function (v) { return {name: v.name,age: v.age};});
1311 },
1412 _U.list([{name: "Tom",age: 42}]));
15− var time = Elm.Native.Port.make(_elm).outbound("time",
16− function (v) {
17− return v;
18− },
19− 3.14);
20− var fortyTwo = Elm.Native.Port.make(_elm).outbound("fortyTwo",
21− function (v) {
22− return v;
23− },
24− 42);
13+ var time = Elm.Native.Port.make(_elm).outbound("time",function (v) { return v;},3.14);
14+ var fortyTwo = Elm.Native.Port.make(_elm).outbound("fortyTwo",function (v) { return v;},42);
2515 var record = Elm.Native.Port.make(_elm).inbound("record",
2616 "{ x : Float, y : Float }",
2717 function (v) {
@@ -41,22 +31,19 @@ Elm.Main.make = function (_elm) {
4131 "( Float, Bool )",
4232 function (v) {
4333 return typeof v === "object" && v instanceof Array ? {ctor: "_Tuple2"
44− ,_0: typeof v[0] === "number" ? v[0] : _U.badPort("a number",
45− v[0])
34+ ,_0: typeof v[0] === "number" ? v[0] : _U.badPort("a number",v[0])
4635 ,_1: typeof v[1] === "boolean" ? v[1] : _U.badPort("a boolean (true or false)",
4736 v[1])} : _U.badPort("an array",v);
4837 });
4938 var number = Elm.Native.Port.make(_elm).inbound("number",
5039 "Int",
5140 function (v) {
52− return typeof v === "number" && isFinite(v) && Math.floor(v) === v ? v : _U.badPort("an integer",
53− v);
41+ return typeof v === "number" && isFinite(v) && Math.floor(v) === v ? v : _U.badPort("an integer",v);
5442 });
5543 var userID = Elm.Native.Port.make(_elm).inbound("userID",
5644 "String",
5745 function (v) {
58− return typeof v === "string" || typeof v === "object" && v instanceof String ? v : _U.badPort("a string",
59− v);
46+ return typeof v === "string" || typeof v === "object" && v instanceof String ? v : _U.badPort("a string",v);
6047 });
6148 return _elm.Main.values = {_op: _op};
6249};