Skip to content

Commit

Permalink
Merge pull request #174 from thatxy/master
Browse files Browse the repository at this point in the history
Run es5 getter codemod
  • Loading branch information
quincyle authored Oct 4, 2018
2 parents 7251e0e + 3304399 commit 2e576c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/extensions/component-prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {logger} from '../utils/prop-types'
Component.reopen(PropTypeMixin, {
init () {
if (settings.requireComponentPropTypes) {
const propTypes = this.get('propTypes')
const propTypes = this.propTypes

if (!isArray(propTypes) || propTypes.length === 0) {
logger.warn(
Expand Down
2 changes: 1 addition & 1 deletion addon/mixins/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default Mixin.create({

// Note defaults is a concatenated property so this is actually an array
// of getDefaultProps() methods all the way up the inheritance chain
const defaults = this.get('getDefaultProps')
const defaults = this.getDefaultProps

// Keep a record of any properties that came from a getDefaultProps call
// - let child getDefaultProps functions take precedence over parents
Expand Down

0 comments on commit 2e576c4

Please sign in to comment.