Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Use the new addons API #346

Merged
merged 8 commits into from
Aug 2, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename pageBus to channel
  • Loading branch information
thani-sh committed Aug 2, 2016
commit d6b7496bd8eb9c92658712bce5f2b0a17897056f
8 changes: 4 additions & 4 deletions dist/client/preview/client_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de

var ClientApi = function () {
function ClientApi(_ref) {
var pageBus = _ref.pageBus;
var channel = _ref.channel;
var storyStore = _ref.storyStore;
(0, _classCallCheck3.default)(this, ClientApi);

// pageBus can be null when running in node
// always check whether pageBus is available
this._pageBus = pageBus;
// channel can be null when running in node
// always check whether channel is available
this._channel = channel;
this._storyStore = storyStore;
this._addons = {};
this._globalDecorators = [];
Expand Down
8 changes: 4 additions & 4 deletions src/client/preview/client_api.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import UUID from 'uuid';

export default class ClientApi {
constructor({ pageBus, storyStore }) {
// pageBus can be null when running in node
// always check whether pageBus is available
this._pageBus = pageBus;
constructor({ channel, storyStore }) {
// channel can be null when running in node
// always check whether channel is available
this._channel = channel;
this._storyStore = storyStore;
this._addons = {};
this._globalDecorators = [];
Expand Down