Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 79739ad

Browse files
author
Erin Altenhof-Long
committed
fix(): deal with missing logic for exclude module
During the refactor it seems that logic for extracting modules from ng-exclude were lost? This adds that logic back.
1 parent 2a10e90 commit 79739ad

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

hint.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,17 @@ function loadModules() {
7272
function excludeModules(modulesToExclude) {
7373
modulesToExclude = modulesToExclude.map(hintModuleName);
7474
return allModules.filter(function(module) {
75-
return modulesToExclude.indexOf(module) > -1;
75+
return modulesToExclude.indexOf(module) == -1;
7676
});
7777
}
7878

7979
function hintModulesFromElement (elt) {
80-
return elt.attributes['ng-hint-include'].value.split(' ');
80+
var hintMods;
81+
hintMods = elt.attributes['ng-hint-include'];
82+
if(!hintMods) {
83+
hintMods = elt.attributes['ng-hint-exclude']
84+
}
85+
return hintMods.value.split(' ');
8186
}
8287

8388
function hintModuleName(name) {

0 commit comments

Comments
 (0)