Skip to content

Commit fe42b3f

Browse files
author
Sam Ritchie
committed
remove constructor-skipping form
1 parent c34c624 commit fe42b3f

7 files changed

Lines changed: 5 additions & 13 deletions

File tree

build/shadergraph.js

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/shadergraph.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/shadergraph.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/shadergraph.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shadergraph",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "GLSL linker",
55
"repository": {
66
"type": "git",

src/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ const merge = function (a, b = {}) {
2525

2626
export class ShaderGraph {
2727
constructor(snippets, config) {
28-
if (!(this instanceof ShaderGraph)) {
29-
return new ShaderGraph(snippets, config);
30-
}
31-
3228
const defaults = {
3329
globalUniforms: false,
3430
globalVaryings: true,

0 commit comments

Comments
 (0)