Title / Description
Code require([ 'bowser' ], function(bowser) { if (bowser.msie) { alert("Sorry, but this application does not currently work in Internet Explorer.\nUntil support for Internet Explorer is added, please use Google Chrome."); // window.location.href = '/unsupported-browser'; return; } require([ 'global/polyfills' ]); // region Vendor Dependencies require([ 'backbone' ]); require([ 'jquery.ui' ]); require([ 'jquery.multiple-select' ]); require([ 'moment' ], function(moment) { window.moment = window.Moment = moment; }); // eslint-disable-line brace-style require([ 'multi-select-dropdown-element' ], function(MultiSelectDropdownElement) { window.MultiSelectDropdownElement = MultiSelectDropdownElement; }); // eslint-disable-line brace-style require([ 'sticky-table-headers' ], function(StickyTableHeaders) { window.STH = StickyTableHeaders; }); // eslint-disable-line brace-style // endregion // region Global Scripts require([ 'global/_' ]); require([ 'global/$$' ]); require([ 'global/backbone' ]); require([ 'global/object' ]); require([ 'global/array' ]); require([ 'global/node-list' ]); require([ 'global/string' ]); require([ 'global/_old/styles' ]); // FIXME: Remove need for 'global/_old/styles' require([ 'global/moment' ], function(momentExts) { Object.assign(window.moment, momentExts.static); Object.assign(window.moment.prototype, momentExts.instance); }); // endregion require([ 'template-helpers/template-helpers', 'application' ], function(templateHelpers, Application) { _.templateSettings.imports = Object.assign(_.templateSettings.imports, templateHelpers); require([ '_generated/templates' ], function(templates) { window.app = new Application(templates); window.app.start(); }); }); });
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code