Minor code refactor for inlining functions.

This commit is contained in:
Fatih Acet 2016-08-30 08:02:29 +03:00
parent 0f72fc8600
commit 32551faeba
1 changed files with 4 additions and 8 deletions

View File

@ -1,16 +1,12 @@
(function() { (function() {
Turbolinks.enableProgressBar(); Turbolinks.enableProgressBar();
start = function() { $(document).on('page:fetch', function() {
$('.tanuki-logo').addClass('animate'); $('.tanuki-logo').addClass('animate');
}; });
stop = function() { $(document).on('page:change', function() {
$('.tanuki-logo').removeClass('animate'); $('.tanuki-logo').removeClass('animate');
}; });
$(document).on('page:fetch', start);
$(document).on('page:change', stop);
}).call(this); }).call(this);