[Folder] List view load fix (#2069)
* [Folder] List view load fix -List view data takes long time to display, has to do with Angular not triggering its digestive cycle when switching views -Resolved issue by explicitly triggering the digestive cycle -Fixes issue #2067 * Added comment to clarify code addition fix #2069
This commit is contained in:
committed by
Pete Richards
parent
45a152df86
commit
b187762d55
@@ -104,7 +104,7 @@ define(
|
||||
|
||||
scope = jasmine.createSpyObj(
|
||||
"$scope",
|
||||
["$on"]
|
||||
["$on", "$apply"]
|
||||
);
|
||||
scope.domainObject = domainObject;
|
||||
|
||||
@@ -146,6 +146,7 @@ define(
|
||||
runs(function () {
|
||||
expect(scope.children.length).toEqual(0);
|
||||
});
|
||||
expect(scope.$apply).toHaveBeenCalled();
|
||||
});
|
||||
it("releases listeners on $destroy", function () {
|
||||
expect(scope.$on).toHaveBeenCalledWith('$destroy', jasmine.any(Function));
|
||||
|
||||
Reference in New Issue
Block a user