From c5881d1c0ddb0409539afd67073b41df19e5c8c1 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Thu, 4 Sep 2014 19:06:12 +0200 Subject: [PATCH] Sorted presenter dependencies --- public_html/js/Presenters/LoginPresenter.js | 10 +++++----- public_html/js/Presenters/LogoutPresenter.js | 8 ++++---- public_html/js/Presenters/PagedCollectionPresenter.js | 2 +- public_html/js/Presenters/RegistrationPresenter.js | 4 ++-- public_html/js/Presenters/TopNavigationPresenter.js | 6 +++++- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/public_html/js/Presenters/LoginPresenter.js b/public_html/js/Presenters/LoginPresenter.js index b41122af..01950e28 100644 --- a/public_html/js/Presenters/LoginPresenter.js +++ b/public_html/js/Presenters/LoginPresenter.js @@ -4,12 +4,12 @@ App.Presenters = App.Presenters || {}; App.Presenters.LoginPresenter = function( jQuery, util, - topNavigationPresenter, - messagePresenter, - auth, - router, promise, - appState) { + router, + auth, + appState, + topNavigationPresenter, + messagePresenter) { var $el = jQuery('#content'); var $messages; diff --git a/public_html/js/Presenters/LogoutPresenter.js b/public_html/js/Presenters/LogoutPresenter.js index 232df931..153361d2 100644 --- a/public_html/js/Presenters/LogoutPresenter.js +++ b/public_html/js/Presenters/LogoutPresenter.js @@ -3,11 +3,11 @@ App.Presenters = App.Presenters || {}; App.Presenters.LogoutPresenter = function( jQuery, - topNavigationPresenter, - messagePresenter, - auth, promise, - router) { + router, + auth, + topNavigationPresenter, + messagePresenter) { var $messages = jQuery('#content'); diff --git a/public_html/js/Presenters/PagedCollectionPresenter.js b/public_html/js/Presenters/PagedCollectionPresenter.js index a7bee8bf..a870511c 100644 --- a/public_html/js/Presenters/PagedCollectionPresenter.js +++ b/public_html/js/Presenters/PagedCollectionPresenter.js @@ -1,7 +1,7 @@ var App = App || {}; App.Presenters = App.Presenters || {}; -App.Presenters.PagedCollectionPresenter = function(api, util, promise) { +App.Presenters.PagedCollectionPresenter = function(util, promise, api) { var searchOrder; var searchQuery; diff --git a/public_html/js/Presenters/RegistrationPresenter.js b/public_html/js/Presenters/RegistrationPresenter.js index 8df02a61..f11755a5 100644 --- a/public_html/js/Presenters/RegistrationPresenter.js +++ b/public_html/js/Presenters/RegistrationPresenter.js @@ -5,9 +5,9 @@ App.Presenters.RegistrationPresenter = function( jQuery, util, promise, + api, topNavigationPresenter, - messagePresenter, - api) { + messagePresenter) { var $el = jQuery('#content'); var template; diff --git a/public_html/js/Presenters/TopNavigationPresenter.js b/public_html/js/Presenters/TopNavigationPresenter.js index 20eca17e..7596cf25 100644 --- a/public_html/js/Presenters/TopNavigationPresenter.js +++ b/public_html/js/Presenters/TopNavigationPresenter.js @@ -1,7 +1,11 @@ var App = App || {}; App.Presenters = App.Presenters || {}; -App.Presenters.TopNavigationPresenter = function(util, jQuery, appState, promise) { +App.Presenters.TopNavigationPresenter = function( + jQuery, + util, + promise, + appState) { var selectedElement = null; var $el = jQuery('#top-navigation');