From 1e2a152fb545166e4131c449f48d7dec1c544b04 Mon Sep 17 00:00:00 2001 From: Chris Bosco Date: Thu, 25 Jun 2015 16:39:19 -0400 Subject: [PATCH] docs(guide/Migrating from Previous Versions): `$animate.on/off` example updated to match docs --- docs/content/guide/migration.ngdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/guide/migration.ngdoc b/docs/content/guide/migration.ngdoc index 5cbb9b7fdbe2..d986c985de7e 100644 --- a/docs/content/guide/migration.ngdoc +++ b/docs/content/guide/migration.ngdoc @@ -88,10 +88,10 @@ element.on('$animate:before', function(e, data) { element.off('$animate:before', fn); // 1.4+ -$animate.on(element, 'enter', function(data) { +$animate.on('enter', element, function(data) { //... }); -$animate.off(element, 'enter', fn); +$animate.off('enter', element, fn); ``` Due to [c8700f04](https://github.com/angular/angular.js/commit/c8700f04fb6fb5dc21ac24de8665c0476d6db5ef),