aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-08-25 07:54:02 +0200
committerThomas Lange <code@nerdmind.de>2017-08-25 07:54:02 +0200
commita2d8bf5a4c8e2bd786fd6aa03e106cdf19d2ab1a (patch)
treed7351730e9772a04e7104ce5514e260ed9ef6301
parent365eaacdcf9212891c4217c7df9528ecbbc8361e (diff)
downloadbigpipe-a2d8bf5a4c8e2bd786fd6aa03e106cdf19d2ab1a.tar.gz
bigpipe-a2d8bf5a4c8e2bd786fd6aa03e106cdf19d2ab1a.tar.xz
bigpipe-a2d8bf5a4c8e2bd786fd6aa03e106cdf19d2ab1a.zip
A missing semicolon has been added and an unused property from the Resource prototype was removed.
-rwxr-xr-xstatic/bigpipe.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/static/bigpipe.js b/static/bigpipe.js
index fa56d21..8eccad8 100755
--- a/static/bigpipe.js
+++ b/static/bigpipe.js
@@ -35,10 +35,9 @@ var BigPipe = (function() {
//==============================================================================
// Resource: Represents a single CSS or JS resource
//==============================================================================
- function Resource(dataJSON, type, pageletID) {
+ function Resource(dataJSON, type) {
this.ID = dataJSON.ID;
this.HREF = dataJSON.HREF;
- this.pageletID = pageletID;
this.callbacks = [];
this.node = false;
this.done = false;
@@ -159,11 +158,11 @@ var BigPipe = (function() {
//==============================================================================
Pagelet.prototype.initializeResources = function() {
this.stylesheets.forEach(function(data) {
- this.attachResource(new Resource(data, Resource.TYPE_STYLESHEET, this.ID));
+ this.attachResource(new Resource(data, Resource.TYPE_STYLESHEET));
}.bind(this));
this.javascripts.forEach(function(data) {
- this.attachResource(new Resource(data, Resource.TYPE_JAVASCRIPT, this.ID));
+ this.attachResource(new Resource(data, Resource.TYPE_JAVASCRIPT));
}.bind(this));
};
@@ -207,7 +206,7 @@ var BigPipe = (function() {
}
return this.resources[resource.type].push(resource);
- }
+ };
//==============================================================================
// Pagelet: Executes the main JS code of the pagelet