mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
In Angular 1.3.0-rc.5, $animate defers changes till the next digest.
Disabled animation for now.
This commit is contained in:
@@ -5,6 +5,10 @@ module.exports = function imageOnloadAnimateDirective($parse, $animate) {
|
||||
$animate.addClass(element, 'ng-image-not-loaded')
|
||||
element.bind('load', function () {
|
||||
$animate.removeClass(element, 'ng-image-not-loaded')
|
||||
|
||||
//if(!scope.$$phase) {
|
||||
// scope.$digest()
|
||||
//}
|
||||
// console.log('image is loaded')
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user