on master help sign in
Remove trailing commas, make Closure Compiler happy
commit979f15e324dd6dbeff142e930f3e1b3ff4ccf08b authorEvan Czaplicki <info@elm-lang.org> dateTue 6 May 2014, 12:26 (12 years ago) parent3aa9c70
10 files changed+13−15
libraries/Native/Bitwise.js+1−1 libraries/Native/Graphics/Input.js+1−1 libraries/Native/Graphics/WebGL.js+1−2 libraries/Native/Json.js+1−1 libraries/Native/MJS.js+1−2 libraries/Native/Math/Vector2.js+1−1 libraries/Native/Math/Vector4.js+1−1 libraries/Native/Regex.js+2−2 libraries/Native/String.js+1−1 libraries/Native/Text.js+3−3
libraries/Native/Bitwise.js+1−1
@@ -19,7 +19,7 @@ Elm.Native.Bitwise.make = function(elm) {
1919 complement: not,
2020 shiftLeft : F2(sll),
2121 shiftRightArithmatic: F2(sra),
22− shiftRightLogical : F2(srl),
22+ shiftRightLogical : F2(srl)
2323 };
2424
2525};
libraries/Native/Graphics/Input.js+1−1
@@ -286,7 +286,7 @@ Elm.Native.Graphics.Input.make = function(elm) {
286286 start: start,
287287 end: end,
288288 direction: { ctor: direction }
289− },
289+ }
290290 }));
291291 }
292292
libraries/Native/Graphics/WebGL.js+1−2
@@ -293,7 +293,6 @@ Elm.Native.Graphics.WebGL.make = function(elm) {
293293
294294 if (!window.WebGLRenderingContext) {
295295 throw new Error("It appears your browser does not support WebGL! http://get.webgl.org/troubleshooting");
296− return;
297296 }
298297
299298 var w = dimensions._0;
@@ -348,7 +347,7 @@ Elm.Native.Graphics.WebGL.make = function(elm) {
348347 models: models,
349348 cache: {},
350349 w: w,
351− h: h,
350+ h: h
352351 }
353352 };
354353
libraries/Native/Json.js+1−1
@@ -79,7 +79,7 @@ Elm.Native.Json.make = function(elm) {
7979 toString : F2(toString),
8080 fromString : fromString,
8181 fromJS : fromJS,
82− toJS : toJS,
82+ toJS : toJS
8383 };
8484
8585};
libraries/Native/MJS.js+1−2
@@ -1733,7 +1733,6 @@ Elm.Native.MJS.make = function(elm) {
17331733 };
17341734
17351735 return {
1736− V3: V3,
17371736 v3: F3(V3.$),
17381737 v3getX: V3.getX,
17391738 v3getY: V3.getY,
@@ -1783,7 +1782,7 @@ Elm.Native.MJS.make = function(elm) {
17831782 m4x4makeLookAt: F3(M4x4.makeLookAt),
17841783 m4x4transpose: M4x4.transpose,
17851784 m4x4transformPoint: F2(M4x4.transformPoint),
1786− m4x4makeBasis: F3(M4x4.makeBasis),
1785+ m4x4makeBasis: F3(M4x4.makeBasis)
17871786 };
17881787
17891788}
libraries/Native/Math/Vector2.js+1−1
@@ -180,7 +180,7 @@ Elm.Native.Math.Vector2.make = function(elm) {
180180 distanceSquared: F2(V2.distanceSquared),
181181 normalize: V2.normalize,
182182 scale: F2(V2.scale),
183− dot: F2(V2.dot),
183+ dot: F2(V2.dot)
184184 };
185185
186186}
libraries/Native/Math/Vector4.js+1−1
@@ -218,7 +218,7 @@ Elm.Native.Math.Vector4.make = function(elm) {
218218 distanceSquared: F2(V4.distanceSquared),
219219 normalize: V4.normalize,
220220 scale: F2(V4.scale),
221− dot: F2(V4.dot),
221+ dot: F2(V4.dot)
222222 };
223223
224224}
libraries/Native/Regex.js+2−2
@@ -43,7 +43,7 @@ Elm.Native.Regex.make = function(elm) {
4343 match: result[0],
4444 submatches: List.fromArray(subs),
4545 index: result.index,
46− number: number,
46+ number: number
4747 });
4848 }
4949 return List.fromArray(out);
@@ -98,6 +98,6 @@ Elm.Native.Regex.make = function(elm) {
9898 contains: F2(contains),
9999 find: F3(find),
100100 replace: F4(replace),
101− split: F3(split),
101+ split: F3(split)
102102 };
103103};
libraries/Native/String.js+1−1
@@ -247,6 +247,6 @@ Elm.Native.String.make = function(elm) {
247247 toInt: toInt,
248248 toFloat: toFloat,
249249 toList: toList,
250− fromList: fromList,
250+ fromList: fromList
251251 };
252252};
libraries/Native/Text.js+3−3
@@ -123,7 +123,7 @@ Elm.Native.Text.make = function(elm) {
123123 html : Utils.makeText(text),
124124 align: align,
125125 guid : null,
126− args : [],
126+ args : []
127127 };
128128 var pos = A2(Utils.htmlHeight, 0, raw);
129129 return A3(Element.newElement, pos._0, pos._1, raw);
@@ -136,7 +136,7 @@ Elm.Native.Text.make = function(elm) {
136136 html: text,
137137 align: null,
138138 guid: guid,
139− args: [],
139+ args: []
140140 };
141141 var pos = A2(Utils.htmlHeight, 0, raw);
142142 return A3(Element.newElement, pos._0, pos._1, raw);
@@ -162,6 +162,6 @@ Elm.Native.Text.make = function(elm) {
162162 markdown : markdown,
163163
164164 toTypefaces:toTypefaces,
165− toLine:toLine,
165+ toLine:toLine
166166 };
167167};