Skip to content

Commit

Permalink
remove types prop
Browse files Browse the repository at this point in the history
change excludedQueryKeys to accept defaultTypes
  • Loading branch information
ChrisSki committed Feb 17, 2015
1 parent 207a385 commit dcdea6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var defaultTypes = {
};
var mediaKeys = Object.keys(mediaQuery.all);
var types = assign(defaultTypes, mediaQuery.all);
var excludedQueryKeys = Object.keys(types);
var excludedQueryKeys = Object.keys(defaultTypes);
var excludedPropKeys = excludedQueryKeys.concat(mediaKeys);

var mq = React.createClass({
Expand Down Expand Up @@ -46,7 +46,7 @@ var mq = React.createClass({
if (props.query) {
this.query = props.query;
} else {
this.query = toQuery(props);
this.query = toQuery(omit(props, excludedQueryKeys));
}

if (!this.query) {
Expand Down

0 comments on commit dcdea6a

Please sign in to comment.