diff options
author | Thomas Lange <code@nerdmind.de> | 2017-08-25 07:54:02 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-08-25 07:54:02 +0200 |
commit | a2d8bf5a4c8e2bd786fd6aa03e106cdf19d2ab1a (patch) | |
tree | d7351730e9772a04e7104ce5514e260ed9ef6301 | |
parent | 365eaacdcf9212891c4217c7df9528ecbbc8361e (diff) | |
download | bigpipe-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-x | static/bigpipe.js | 9 |
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
|