Permalink
Browse files

[TIMOB-9610]Updating docs and sample code in KS.

  • Loading branch information...
1 parent 1e460eb commit 1505711bf611e973e3391403a4359eaae225dba8 @srahim srahim committed Jul 10, 2012
Showing with 4 additions and 7 deletions.
  1. +4 −0 apidoc/Titanium/UI/Animation.yml
  2. +0 −7 demos/KitchenSink/Resources/examples/transitions.js
View
4 apidoc/Titanium/UI/Animation.yml
@@ -168,6 +168,10 @@ properties:
<Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT>,
<Titanium.UI.iPhone.AnimationStyle.FLIP_FROM_RIGHT>,
or <Titanium.UI.iPhone.AnimationStyle.NONE>.
+ #### NOTE:
+ The view being transitioned **should NOT** already be a child of another view or
+ of the animating view.The animation inf effect replaces current view from the
+ view heirarchy and adds the new view to it.
type: Number
platforms: [iphone, ipad]
View
7 demos/KitchenSink/Resources/examples/transitions.js
@@ -124,8 +124,6 @@ image3.addEventListener('click', function()
view.add(imageView);
-imageView.add(image3);
-imageView.add(image2);
imageView.add(image1);
//
@@ -172,8 +170,6 @@ bb3.addEventListener('click', function()
controlView.animate({view:bb1,transition:Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT});
});
-controlView.add(bb3);
-controlView.add(bb2);
controlView.add(bb1);
@@ -240,8 +236,6 @@ three.addEventListener('click', function()
toolbarView.animate({view:toolbar,transition:Ti.UI.iPhone.AnimationStyle.CURL_DOWN});
});
-toolbarView.add(toolbar3);
-toolbarView.add(toolbar2);
toolbarView.add(toolbar);
@@ -290,5 +284,4 @@ var bViewLabel = Titanium.UI.createLabel({
b2.add(bViewLabel);
-funView.add(b2);
funView.add(b);

0 comments on commit 1505711

Please sign in to comment.