No need to import/export HatchService from the base common module since
it's now a core service which is exported automatically to root.
Includes minor lint repair.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
*/
// consider moving these to core...
-import {HatchService} from '@eg/share/print/hatch.service';
import {HtmlToTxtService} from '@eg/share/util/htmltotxt.service';
import {PrintService} from '@eg/share/print/print.service';
ngModule: EgCommonModule,
providers: [
HtmlToTxtService,
- HatchService,
PrintService
]
};
// Most recent assignment always wins.
this.assignments.forEach(a => {
if (a.key === assn.key) {
- if (a.ctx === assn.ctx) {
+ if (a.ctx === assn.ctx) {
// If key and context match, keep only the most recent.
- return;
+ return;
} else {
// An assignment within a different context shadows
// an existing assignment. Keep the assignment