diff options
author | Thomas Lange <code@nerdmind.de> | 2018-02-03 23:59:44 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2018-02-03 23:59:44 +0100 |
commit | df4865e7bcc3857be2f4b57d565a501a097b0daa (patch) | |
tree | f3855a479e9a377ac6740916539b6496a90b180f /static | |
parent | 93fb309405e7a006973ad0689ee87414ff3481ba (diff) | |
download | bigpipe-df4865e7bcc3857be2f4b57d565a501a097b0daa.tar.gz bigpipe-df4865e7bcc3857be2f4b57d565a501a097b0daa.tar.xz bigpipe-df4865e7bcc3857be2f4b57d565a501a097b0daa.zip |
Rename payload object "dataJSON" to just "data"
Diffstat (limited to 'static')
-rw-r--r-- | static/bigpipe.js | 22 |
1 files 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 = [[], []]; |