Skip to content

Instantly share code, notes, and snippets.

@panayi
Created June 14, 2012 19:02
Show Gist options
  • Select an option

  • Save panayi/2932238 to your computer and use it in GitHub Desktop.

Select an option

Save panayi/2932238 to your computer and use it in GitHub Desktop.
App.NavPanelView = Ember.View.extend( JQ.Animate, {
cssProperties: ['height'],
closedHeight: 40,
openedHeight: 500,
mouseover: function(){
var openedHeight = this.get('openedHeight');
this.set('height', openedHeight);
},
mouseout: function(){
var closedHeight = this.get('closedHeight');
this.set('height', closedHeight);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment