blob: d0e7c649f91283eb8aec1f9e4018a0984b064e76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
(function () {
'use strict';
define(['require', 'util', 'vendor'], function (require, Util) {
require(['script']);
var App = {
// Gets called for every request
initialize: function () {
this.setupLineHighlight();
},
// Gets called for every request on page load
onPageLoaded: function () {
Util.highlightLineFromHash();
},
setupLineHighlight: function () {
$(window).on('hashchange', Util.highlightLineFromHash);
}
};
return App;
});
})();
|