Minor code refactor for inlining functions.
This commit is contained in:
parent
0f72fc8600
commit
32551faeba
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue