Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
randyaskin committed Jul 18, 2017
1 parent bdcdd81 commit 0ff1941
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="import" href="../px-demo-component-snippet.html" />
<link rel="import" href="../px-demo-code-editor.html" />

<!-- Imports for this componnent -->
<!-- Imports for this component -->
<link rel="import" href="../css/px-demo-styles.html" />
<link rel="import" href="../../px-calendar-picker/px-calendar-picker.html" />

Expand Down
2 changes: 1 addition & 1 deletion px-demo-interactive.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
this.fire('px-demo-component-light-dom-loaded');
}
/**
* fired when the light DOM contgent has been loadedfor px-dom-component, which
* fired when the light DOM content has been loaded for px-demo-component, which
* holds the component being demoed.
* @event px-demo-component-light-dom-loaded
*/
Expand Down
12 changes: 6 additions & 6 deletions px-demo-props.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,19 +449,19 @@
_handleConfigUpdate: function(newConfig) {
if (newConfig && Object.keys(newConfig).length) {
if (newConfig.configShowProps && Array.isArray(newConfig.configShowProps)) {
this._setEachPropVisibily('showOnly', newConfig.configShowProps);
this._setEachPropVisibility('showOnly', newConfig.configShowProps);
}
else if (newConfig.configHideProps && Array.isArray(newConfig.configHideProps) && newConfig.configHideProps.length) {
this._setEachPropVisibily('hideOnly', newConfig.configHideProps);
this._setEachPropVisibility('hideOnly', newConfig.configHideProps);
}
else {
this._setEachPropVisibily('showAll');
this._setEachPropVisibility('showAll');
}
}
},

/**
* Loops through all fields and shows/hides dependening on the configuration
* Loops through all fields and shows/hides depending on the configuration
* of the function.
*
* If `behavior` is 'showOnly', hides everything except what is in `propList`.
Expand All @@ -471,7 +471,7 @@
* @param {String} behavior - How the function should show/hide things, choose from 'showOnly', 'hideOnly', 'showAll'
* @param {Array} propList - Array of string-y names for each prop
*/
_setEachPropVisibily: function(behavior, propList) {
_setEachPropVisibility: function(behavior, propList) {
var fields = this.get('_fields');
var numberOfVisibleProps = 0;
if (fields && fields.length) {
Expand All @@ -482,7 +482,7 @@
if (behavior === 'showOnly') shouldShowProp = (propList.indexOf(propName) !== -1);
// If hideOnly, set shouldShow to `true` if prop is not in list
if (behavior === 'hideOnly') shouldShowProp = (propList.indexOf(propName) === -1);
// If showAll, show all the prosp
// If showAll, show all the props
if (behavior === 'showAll') shouldShowProp = true;

if (shouldShowProp === true) {
Expand Down

0 comments on commit 0ff1941

Please sign in to comment.