_container.classList.toggle('jsShowOnlyMatches');
});
- var knownPips = [], tmpPips = [];
+ var existingPips = [], knownPips = [], tmpPips = [];
elBySelAll('.jsHasPipTargets:not(.jsSkipTargetDetection)', _container, (function (pip) {
var pluginName = elData(pip, 'plugin-name');
var targets = [];
_pips.push(data);
knownPips.push(pluginName);
}
+
+ existingPips.push(pluginName);
}).bind(this));
var resolvedDependency = false;
item = tmpPips[i];
openDependencies = item.dependencies.filter(function (dependency) {
+ // Ignore any dependencies that are not present.
+ if (existingPips.indexOf(dependency) === -1) {
+ window.console.info('The dependency "' + dependency + '" does not exist and has been ignored.');
+ return false;
+ }
+
return (knownPips.indexOf(dependency) === -1);
});
}
}
};
-});
\ No newline at end of file
+});