From df4865e7bcc3857be2f4b57d565a501a097b0daa Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sat, 3 Feb 2018 23:59:44 +0100 Subject: Rename payload object "dataJSON" to just "data" --- static/bigpipe.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/static/bigpipe.js b/static/bigpipe.js index 86d1cbe..cc048a5 100644 --- a/static/bigpipe.js +++ b/static/bigpipe.js @@ -37,15 +37,15 @@ BigPipe = (function() { // Resource: Represents a resource //============================================================================== class Resource { - constructor(dataJSON, type) { - this.ID = dataJSON.ID; - this.HREF = dataJSON.HREF; + constructor(data, type) { + this.ID = data.ID; + this.HREF = data.HREF; this.callbacks = []; this.node = false; this.done = false; this.type = type; - this.phaseDoneJS = dataJSON.PHASE; + this.phaseDoneJS = data.PHASE; this.phase = 0; PhaseDoneJS.handler(this, Resource.PHASE_INIT); @@ -133,14 +133,14 @@ BigPipe = (function() { // Pagelet: Represents a pagelet //============================================================================== class Pagelet { - constructor(dataJSON, HTML) { - this.ID = dataJSON.ID; - this.NEED = dataJSON.NEED; + constructor(data, HTML) { + this.ID = data.ID; + this.NEED = data.NEED; this.HTML = HTML; - this.JSCode = dataJSON.CODE; - this.phaseDoneJS = dataJSON.PHASE; - this.stylesheets = dataJSON.RSRC[Resource.TYPE_STYLESHEET]; - this.javascripts = dataJSON.RSRC[Resource.TYPE_JAVASCRIPT]; + this.JSCode = data.CODE; + this.phaseDoneJS = data.PHASE; + this.stylesheets = data.RSRC[Resource.TYPE_STYLESHEET]; + this.javascripts = data.RSRC[Resource.TYPE_JAVASCRIPT]; this.phase = 0; this.resources = [[], []]; -- cgit v1.2.3