[Common UI] Avoid infinite digest
Avoid infinite digest when first applicy mct-scroll directives, WTD-920.
This commit is contained in:
@@ -86,6 +86,11 @@ define(
|
||||
expect(mockScope.$apply).toHaveBeenCalledWith(EXPRESSION);
|
||||
});
|
||||
|
||||
// This would trigger an infinite digest exception
|
||||
it("does not call $apply during construction", function () {
|
||||
expect(mockScope.$apply).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user