Skip to content

Commit

Permalink
Move more layout, animation and touch stuff out of view.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Feb 3, 2011
1 parent 725b8f8 commit 987b9d0
Show file tree
Hide file tree
Showing 6 changed files with 1,357 additions and 1,338 deletions.
22 changes: 22 additions & 0 deletions frameworks/amber/views/animation.js
@@ -1,4 +1,26 @@
sc_require("views/view");
sc_require("views/layout_style");

/**
Properties that can be animated
(Hash for faster lookup)
*/
SC.ANIMATABLE_PROPERTIES = {
top: YES,
left: YES,
bottom: YES,
right: YES,
width: YES,
height: YES,
centerX: YES,
centerY: YES,
opacity: YES,
scale: YES,
rotate: YES,
rotateX: YES,
rotateY: YES,
rotateZ: YES
};

SC.View.reopen(
/** @scope SC.View.prototype */ {
Expand Down

0 comments on commit 987b9d0

Please sign in to comment.