Skip to content

Commit 845bd65

Browse files
committed
Added a breaking changes entry for the upcoming 1.4.0 release.
1 parent bd44627 commit 845bd65

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
Cross Platform Modules Changelog
22
==============================
3+
##1.4.0 (planned for 2015, October 7)
4+
5+
### Breaking changes
6+
- [(#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.
7+
8+
**Old Code (JavaScript)**:
9+
```JavaScript
10+
animation1.play().finished.then(function () { console.log("Finished"); });
11+
```
12+
**New Code (JavaScript)**:
13+
```JavaScript
14+
animation1.play().then(function () { console.log("Finished"); });
15+
```
16+
**Old Code (TypeScript)**:
17+
```JavaScript
18+
animation1.play().finished.then(()=>console.log("Finished"));
19+
```
20+
**New Code (JavaScript)**:
21+
```JavaScript
22+
animation1.play().then(()=>console.log("Finished"));
23+
```
24+
325
##1.3.0 (2015, September 16)
426

527
### Fixed

0 commit comments

Comments
 (0)