Skip to content

Commit

Permalink
Merge pull request #2478 from piotrd/fixes/2327
Browse files Browse the repository at this point in the history
fix(common.js): "Cannot read property 'params' of undefined" errors
Closes #2327
  • Loading branch information
christopherthielen committed Jan 24, 2016
2 parents 41acad8 + e05ff5a commit e92a929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function inheritParams(currentParams, newParams, $current, $to) {
var parents = ancestors($current, $to), parentParams, inherited = {}, inheritList = [];

for (var i in parents) {
if (!parents[i].params) continue;
if (!parents[i] || !parents[i].params) continue;
parentParams = objectKeys(parents[i].params);
if (!parentParams.length) continue;

Expand Down

0 comments on commit e92a929

Please sign in to comment.