From a2d8bf5a4c8e2bd786fd6aa03e106cdf19d2ab1a Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 25 Aug 2017 07:54:02 +0200 Subject: A missing semicolon has been added and an unused property from the Resource prototype was removed. --- static/bigpipe.js | 9 ++++----- 1 file 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 -- cgit v1.2.3