We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30c4174 commit cdbc509Copy full SHA for cdbc509
lib/Chunk.js
@@ -27,6 +27,7 @@ Chunk.prototype.removeModule = function(module) {
27
};
28
29
Chunk.prototype.addChunk = function(chunk) {
30
+ if(chunk === this) return false;
31
if(this.chunks.indexOf(chunk) >= 0) return false;
32
this.chunks.push(chunk);
33
return true;
@@ -41,6 +42,7 @@ Chunk.prototype.removeChunk = function(chunk) {
41
42
43
44
Chunk.prototype.addParent = function(chunk) {
45
46
if(this.parents.indexOf(chunk) >= 0) return false;
47
this.parents.push(chunk);
48
0 commit comments