From a78e235e5f5e60c12dc14d83fe91dd0b1c25520c Mon Sep 17 00:00:00 2001 From: j0be Date: Mon, 26 Sep 2016 11:30:45 -0400 Subject: [PATCH] Dom binding timing Order of operations nonsense now that I'm ajaxing the markup --- powerdeletesuite.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/powerdeletesuite.js b/powerdeletesuite.js index ece2f7b..4003686 100644 --- a/powerdeletesuite.js +++ b/powerdeletesuite.js @@ -1,5 +1,4 @@ -var pdApp; -pdApp = { +var pdApp = { init: function () { document.title = $('#header-bottom-right .user a').first().text()+' | Power Delete Suite'; console.log('init'); @@ -12,7 +11,6 @@ pdApp = { user : $('#header-bottom-right .user a').first().text() }; pdApp.prepDom(); - pdApp.bindUI(); pdApp.parseSettings(); } else { if (confirm('This script is designed to be run from your own user profile. Would you like to navigate there?')) { @@ -49,8 +47,9 @@ pdApp = { url: 'https://www.reddit.com/r/PowerDeleteSuite/wiki/centralform.json', context: $('#pd__central') }).then(function(data) { - $(this).html($("