diff --git a/CHANGELOG.md b/CHANGELOG.md index 86b6c6c9f..eb57d8e69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,26 +2,6 @@ Cross Platform Modules Changelog ============================== ##1.4.0 (2015, October 12) -### Breaking changes -- [(#774)](https://github.com/NativeScript/NativeScript/issues/774) Animation class no longer has a **finished** property because an animation can be played multiple times. The **play** method now returns a new Promise each time it is invoked. Use this to listen for the animation finishing or being cancelled. When upgrading to version 1.4.0 or above simply remove **.finished** from your code. - -**Old Code (JavaScript)**: -```JavaScript -animation1.play().finished.then(function () { console.log("Finished"); }); -``` -**New Code (JavaScript)**: -```JavaScript -animation1.play().then(function () { console.log("Finished"); }); -``` -**Old Code (TypeScript)**: -```JavaScript -animation1.play().finished.then(()=>console.log("Finished")); -``` -**New Code (JavaScript)**: -```JavaScript -animation1.play().then(()=>console.log("Finished")); -``` - ### Fixed - [(#904)](https://github.com/NativeScript/NativeScript/issues/904) Navigate clearHistory sometimes crashes Android with a null pointer exception @@ -96,6 +76,26 @@ animation1.play().then(()=>console.log("Finished")); - [(#241)](https://github.com/NativeScript/NativeScript/issues/241) Set base URL in WebView to be able to load resources +### Breaking changes +- [(#774)](https://github.com/NativeScript/NativeScript/issues/774) Animation class no longer has a **finished** property because an animation can be played multiple times. The **play** method now returns a new Promise each time it is invoked. Use this to listen for the animation finishing or being cancelled. When upgrading to version 1.4.0 or above simply remove **.finished** from your code. + +**Old Code (JavaScript)**: +```JavaScript +animation1.play().finished.then(function () { console.log("Finished"); }); +``` +**New Code (JavaScript)**: +```JavaScript +animation1.play().then(function () { console.log("Finished"); }); +``` +**Old Code (TypeScript)**: +```JavaScript +animation1.play().finished.then(()=>console.log("Finished")); +``` +**New Code (JavaScript)**: +```JavaScript +animation1.play().then(()=>console.log("Finished")); +``` + ##1.3.0 (2015, September 16) ### Fixed