summaryrefslogtreecommitdiffstats
path: root/data/js/application.js
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-05-01 22:28:54 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:27 +0200
commitda835670f796774d1f98c05dfdf7da1c7ba2655a (patch)
tree22922112e521779d76c7f2b2c418cee64a729e17 /data/js/application.js
parentf7da6a0ee8c3b79deb8995e592a130a4a409dc70 (diff)
Use global appConfig js variable instead of passing it down
Initialize it in header
Diffstat (limited to 'data/js/application.js')
-rw-r--r--data/js/application.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/data/js/application.js b/data/js/application.js
index 76ed5ae55..06a53854d 100644
--- a/data/js/application.js
+++ b/data/js/application.js
@@ -21,12 +21,11 @@ define(
* Gets called for every request after page load
* config contains app config attributes passed from php
*/
- onPageLoaded: function (config) {
- config = config || {};
+ onPageLoaded: function () {
Util.highlightLineFromHash();
Util.setTabwidthFromLocalStorage();
TabwidthInput.initialize();
- LexerInput.initialize(config.lexers);
+ LexerInput.initialize();
ThumbnailView.initialize();
this.configureTooltips();
this.setupToggleSelectAllEvent();