mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:43:45 +02:00
All JSHint trough webpack passes now.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module.exports = function imageOnloadAnimateDirective($parse, $animate) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link: function (scope, element, attrs) {
|
||||
link: function (scope, element) {
|
||||
$animate.addClass(element, 'ng-image-not-loaded')
|
||||
element.bind('load', function () {
|
||||
$animate.removeClass(element, 'ng-image-not-loaded')
|
||||
|
||||
Reference in New Issue
Block a user