Created
April 28, 2011 07:10
-
-
Save oelmekki/945938 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
this.Controller = new Class({ | |
Extends: Framework.Controller, | |
options: { | |
View: this.View, | |
events: [ | |
{ el: 'commentField', type: 'focus', view_method: 'expandCommentField' }, | |
{ el: 'commentField', type: 'blur', view_method: 'shrinkCommentField' } | |
] | |
} | |
}); | |
}).apply( ShareFlock.Pages.BlogPosts.Show ); | |
if ( typeof exports == 'undefined' ){ | |
window.addEvent( 'domready', function(){ | |
window.blog_posts_show = new ShareFlock.Pages.BlogPosts.Show.Controller( document.getElement( '#blog_posts_show' ) ); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment