Permalink
Browse files

Refactor - use single quotes

  • Loading branch information...
jacobwinters committed Jun 2, 2018
1 parent 2d6b906 commit 775776461300efec39e85f69a7858d34cc5e6f24
Showing with 8 additions and 8 deletions.
  1. +2 −2 compile.js
  2. +1 −1 display.js
  3. +1 −1 fiddle.js
  4. +1 −1 generate.js
  5. +1 −1 gl.js
  6. +1 −1 main.js
  7. +1 −1 utils.js
@@ -1,4 +1,4 @@
"use strict";
'use strict';
function compile(node, type='texture', counter = makeCounter()){
const ourId = counter();
@@ -10,7 +10,7 @@ function compile(node, type='texture', counter = makeCounter()){
const code = `${nodeKinds[type].returnType} node${ourId}(${nodeKinds[type].parameters}) {
// ${type} ${node[0]}
${nodeType.code.join("\n\t")}
${nodeType.code.join('\n\t')}
}`;
const codeWithChildrenCalls = code.replace(/`([0-9]+)/g, (_, number) => `node${children[Number(number) - 1].id}`)
@@ -1,4 +1,4 @@
"use strict";
'use strict';
function grid(nodes) {
return (gl, compiler, display) => {
@@ -1,4 +1,4 @@
"use strict";
'use strict';
function fiddle(node, type = 'texture') {
const nodeType = nodeTypes[type][node[0]];
@@ -1,4 +1,4 @@
"use strict";
'use strict';
function generateNode(maxDepth, type='texture') {
if(Math.random() * (maxDepth + 1) < 1) {
2 gl.js
@@ -1,4 +1,4 @@
"use strict";
'use strict';
function initWebGL(canvas){
const gl = canvas.getContext('webgl');
@@ -1,4 +1,4 @@
"use strict";
'use strict';
const settings = {
operation: 'variations',
@@ -1,4 +1,4 @@
"use strict";
'use strict';
function flatten(arrayOfArrays) {
return [].concat.apply([], arrayOfArrays);

0 comments on commit 7757764

Please sign in to comment.