Clean code.

This commit is contained in:
Lars Jung 2014-08-30 18:53:16 +02:00
parent ba10f70b12
commit 8951732f3c
42 changed files with 2547 additions and 2572 deletions
src/_h5ai/client/js

View file

@ -1,4 +1,3 @@
// other libs
// ----------
// @include "lib/modernizr-*.js"
@ -16,7 +15,7 @@
// app
// ---
(function () {
'use strict';
'use strict';
/*global jQuery, marked, Modernizr, moment, Prism, _ */
modulejs.define('$', function () { return jQuery; });
@ -28,10 +27,10 @@
// @include "inc/**/*.js"
var $ = jQuery,
module = $('script[data-module]').data('module'),
data = {action: 'get', setup: true, options: true, types: true, theme: true, langs: true},
url;
var $ = jQuery;
var module = $('script[data-module]').data('module');
var data = {action: 'get', setup: true, options: true, types: true, theme: true, langs: true};
var url;
if ($('html').hasClass('no-browser')) {
return;
@ -56,5 +55,4 @@
modulejs.define('config', config);
$(function () { modulejs.require(module); });
});
}());