bigpipe / bigpipe.js

The client-side library which is used in BigPipe to orchestrate the pagelets.
MIT License
20 stars 6 forks source link

Underscore private variables #13

Open Swaagie opened 9 years ago

Swaagie commented 9 years ago

To stay in line with the server side part of bigpipe, we should underscore private variabeles. This should also allow 'collision free' property usage for client side plugins.

Currently the following would fail in client side pagelets due to not having _bigpipe on the client side. This would go for all general modules or constructors that are used isomorphic.

function DataStore(pagelet) {
  if (!this) return new DataStore(pagelet);

  this.readable('_pagelet', pagelet);
  this.readable('_pouchdb', pagelet._bigpipe.pouchdb);