Skip to content

Instantly share code, notes, and snippets.

@sevifives
Created April 18, 2012 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sevifives/2415844 to your computer and use it in GitHub Desktop.
Save sevifives/2415844 to your computer and use it in GitHub Desktop.
/**
<div id='range'>
<div id='cell-thing'></div>
</div>
**/
ShaderState = SC.State.design({
initialSubState: 'firstState',
jumpToFirst: function () {
this.gotoState('firstState');
},
jumpToSecond: function () {
this.gotoState('secondState');
},
jumpToThird: function () {
this.gotoState('thirdState');
},
jumpToFourth: function () {
this.gotoState('fourthState');
},
jumpToFifth: function () {
this.gotoState('fifthState');
},
firstState: SC.State.design({
enterState: function () {
CellView.adjust('top',0);
}
}),
secondState: SC.State.design({
enterState: function () {
CellView.adjust('top',20);
}
}),
thirdState: SC.State.design({
enterState: function () {
CellView.adjust('top',40);
}
}),
fourthState: SC.State.design({
enterState: function () {
CellView.adjust('top',60);
}
}),
fifthState: SC.State.design({
enterState: function () {
CellView.adjust('top',80);
}
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment