on master help sign in
Remove trailing commas, make Closure Compiler happy
979f15eEvan Czaplicki
libraries/Native/Bitwise.js+1−1
@@ -19,7 +19,7 @@ Elm.Native.Bitwise.make = function(elm) {
19 complement: not,
19 complement: not,
20 shiftLeft : F2(sll),
20 shiftLeft : F2(sll),
21 shiftRightArithmatic: F2(sra),
21 shiftRightArithmatic: F2(sra),
22− shiftRightLogical : F2(srl),
22+ shiftRightLogical : F2(srl)
23 };
23 };
24
24
25};
25};
libraries/Native/Graphics/Input.js+1−1
@@ -286,7 +286,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
286 start: start,
286 start: start,
287 end: end,
287 end: end,
288 direction: { ctor: direction }
288 direction: { ctor: direction }
289− },
289+ }
290 }));
290 }));
291 }
291 }
292
292
libraries/Native/Graphics/WebGL.js+1−2
@@ -293,7 +293,6 @@ Elm.Native.Graphics.WebGL.make = function(elm) {
293
293
294 if (!window.WebGLRenderingContext) {
294 if (!window.WebGLRenderingContext) {
295 throw new Error("It appears your browser does not support WebGL! http://get.webgl.org/troubleshooting");
295 throw new Error("It appears your browser does not support WebGL! http://get.webgl.org/troubleshooting");
296− return;
297 }
296 }
298
297
299 var w = dimensions._0;
298 var w = dimensions._0;
@@ -348,7 +347,7 @@ Elm.Native.Graphics.WebGL.make = function(elm) {
348 models: models,
347 models: models,
349 cache: {},
348 cache: {},
350 w: w,
349 w: w,
351− h: h,
350+ h: h
352 }
351 }
353 };
352 };
354
353
libraries/Native/Json.js+1−1
@@ -79,7 +79,7 @@ Elm.Native.Json.make = function(elm) {
79 toString : F2(toString),
79 toString : F2(toString),
80 fromString : fromString,
80 fromString : fromString,
81 fromJS : fromJS,
81 fromJS : fromJS,
82− toJS : toJS,
82+ toJS : toJS
83 };
83 };
84
84
85};
85};
libraries/Native/MJS.js+1−2
@@ -1733,7 +1733,6 @@ Elm.Native.MJS.make = function(elm) {
1733 };
1733 };
1734
1734
1735 return {
1735 return {
1736− V3: V3,
1737 v3: F3(V3.$),
1736 v3: F3(V3.$),
1738 v3getX: V3.getX,
1737 v3getX: V3.getX,
1739 v3getY: V3.getY,
1738 v3getY: V3.getY,
@@ -1783,7 +1782,7 @@ Elm.Native.MJS.make = function(elm) {
1783 m4x4makeLookAt: F3(M4x4.makeLookAt),
1782 m4x4makeLookAt: F3(M4x4.makeLookAt),
1784 m4x4transpose: M4x4.transpose,
1783 m4x4transpose: M4x4.transpose,
1785 m4x4transformPoint: F2(M4x4.transformPoint),
1784 m4x4transformPoint: F2(M4x4.transformPoint),
1786− m4x4makeBasis: F3(M4x4.makeBasis),
1785+ m4x4makeBasis: F3(M4x4.makeBasis)
1787 };
1786 };
1788
1787
1789}
1788}
libraries/Native/Math/Vector2.js+1−1
@@ -180,7 +180,7 @@ Elm.Native.Math.Vector2.make = function(elm) {
180 distanceSquared: F2(V2.distanceSquared),
180 distanceSquared: F2(V2.distanceSquared),
181 normalize: V2.normalize,
181 normalize: V2.normalize,
182 scale: F2(V2.scale),
182 scale: F2(V2.scale),
183− dot: F2(V2.dot),
183+ dot: F2(V2.dot)
184 };
184 };
185
185
186}
186}
libraries/Native/Math/Vector4.js+1−1
@@ -218,7 +218,7 @@ Elm.Native.Math.Vector4.make = function(elm) {
218 distanceSquared: F2(V4.distanceSquared),
218 distanceSquared: F2(V4.distanceSquared),
219 normalize: V4.normalize,
219 normalize: V4.normalize,
220 scale: F2(V4.scale),
220 scale: F2(V4.scale),
221− dot: F2(V4.dot),
221+ dot: F2(V4.dot)
222 };
222 };
223
223
224}
224}
libraries/Native/Regex.js+2−2
@@ -43,7 +43,7 @@ Elm.Native.Regex.make = function(elm) {
43 match: result[0],
43 match: result[0],
44 submatches: List.fromArray(subs),
44 submatches: List.fromArray(subs),
45 index: result.index,
45 index: result.index,
46− number: number,
46+ number: number
47 });
47 });
48 }
48 }
49 return List.fromArray(out);
49 return List.fromArray(out);
@@ -98,6 +98,6 @@ Elm.Native.Regex.make = function(elm) {
98 contains: F2(contains),
98 contains: F2(contains),
99 find: F3(find),
99 find: F3(find),
100 replace: F4(replace),
100 replace: F4(replace),
101− split: F3(split),
101+ split: F3(split)
102 };
102 };
103};
103};
libraries/Native/String.js+1−1
@@ -247,6 +247,6 @@ Elm.Native.String.make = function(elm) {
247 toInt: toInt,
247 toInt: toInt,
248 toFloat: toFloat,
248 toFloat: toFloat,
249 toList: toList,
249 toList: toList,
250− fromList: fromList,
250+ fromList: fromList
251 };
251 };
252};
252};
libraries/Native/Text.js+3−3
@@ -123,7 +123,7 @@ Elm.Native.Text.make = function(elm) {
123 html : Utils.makeText(text),
123 html : Utils.makeText(text),
124 align: align,
124 align: align,
125 guid : null,
125 guid : null,
126− args : [],
126+ args : []
127 };
127 };
128 var pos = A2(Utils.htmlHeight, 0, raw);
128 var pos = A2(Utils.htmlHeight, 0, raw);
129 return A3(Element.newElement, pos._0, pos._1, raw);
129 return A3(Element.newElement, pos._0, pos._1, raw);
@@ -136,7 +136,7 @@ Elm.Native.Text.make = function(elm) {
136 html: text,
136 html: text,
137 align: null,
137 align: null,
138 guid: guid,
138 guid: guid,
139− args: [],
139+ args: []
140 };
140 };
141 var pos = A2(Utils.htmlHeight, 0, raw);
141 var pos = A2(Utils.htmlHeight, 0, raw);
142 return A3(Element.newElement, pos._0, pos._1, raw);
142 return A3(Element.newElement, pos._0, pos._1, raw);
@@ -162,6 +162,6 @@ Elm.Native.Text.make = function(elm) {
162 markdown : markdown,
162 markdown : markdown,
163
163
164 toTypefaces:toTypefaces,
164 toTypefaces:toTypefaces,
165− toLine:toLine,
165+ toLine:toLine
166 };
166 };
167};
167};