Skip to content

Commit

Permalink
New build
Browse files Browse the repository at this point in the history
  • Loading branch information
jennasalau committed Aug 28, 2016
1 parent fba8349 commit 27dcc13
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 31 deletions.
56 changes: 41 additions & 15 deletions dist/react-habitat.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ return /******/ (function(modules) { // webpackBootstrap
*/

}, {
key: 'registerComponent',
value: function registerComponent(name, comp) {
key: 'register',
value: function register(name, comp) {
if (typeof name !== 'string') {
throw new Error('Unexpected component key. Expects a string.', name);
}
Expand All @@ -324,8 +324,8 @@ return /******/ (function(modules) { // webpackBootstrap
*/

}, {
key: 'registerComponents',
value: function registerComponents(comps) {
key: 'registerAll',
value: function registerAll(comps) {
if ((typeof comps === 'undefined' ? 'undefined' : _typeof(comps)) !== 'object') {
throw new Error('Unexpected components type. Expects type object', comps);
}
Expand All @@ -345,6 +345,43 @@ return /******/ (function(modules) { // webpackBootstrap
return this._components[name];
}

/**
* Returns the containers dom factory
* @returns {ReactDomFactory}
*/

}, {
key: 'domFactory',
value: function domFactory() {
return _ReactDomFactory2.default;
}

/**
* Register a component in the container
* @param {string} name - A unique component key
* @param {object} comp - The component
* @deprecated
*/

}, {
key: 'registerComponent',
value: function registerComponent(name, comp) {
console.warn('registerComponent is being deprecated. ' + 'Please update to use "register()" instead.');
this.register(name, comp);
}

/**
* Register multiple components to the container
* @param {object} comps - The components
*/

}, {
key: 'registerComponents',
value: function registerComponents(comps) {
console.warn('registerComponents is being deprecated. ' + 'Please update to use "registerAll()" instead.');
this.registerAll(comps);
}

/**
* Gets a component for key
* @param name
Expand All @@ -358,17 +395,6 @@ return /******/ (function(modules) { // webpackBootstrap
console.warn('getComponent is being deprecated. Please update to use "resolve()" instead.');
return this.resolve(name);
}

/**
* Returns the containers dom factory
* @returns {ReactDomFactory}
*/

}, {
key: 'domFactory',
value: function domFactory() {
return _ReactDomFactory2.default;
}
}]);

return Container;
Expand Down
2 changes: 1 addition & 1 deletion dist/react-habitat.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 27dcc13

Please sign in to comment.