From 1e954aace08e3135330d1a2630608f0c7beb053a Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Tue, 6 Aug 2013 09:00:12 +0100 Subject: [PATCH] Fixing unused variables --- ghost/admin/views/editor.js | 6 ++---- ghost/admin/views/login.js | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ghost/admin/views/editor.js b/ghost/admin/views/editor.js index cb26e22aaa..e951deb907 100644 --- a/ghost/admin/views/editor.js +++ b/ghost/admin/views/editor.js @@ -119,8 +119,7 @@ handleStatus: function (e) { e.preventDefault(); var status = $(e.currentTarget).attr('data-set-status'), - model = this.model, - self = this; + model = this.model; if (status === 'publish-on') { Ghost.notifications.addItem({ @@ -158,8 +157,7 @@ if (e) { e.preventDefault(); } - var model = this.model, - self = this; + var model = this.model; this.savePost().then(function () { Ghost.notifications.addItem({ type: 'success', diff --git a/ghost/admin/views/login.js b/ghost/admin/views/login.js index 947de67aa4..2c0ec30f8a 100644 --- a/ghost/admin/views/login.js +++ b/ghost/admin/views/login.js @@ -45,8 +45,7 @@ submitHandler: function (event) { event.preventDefault(); var email = this.$el.find('.email').val(), - password = this.$el.find('.password').val(), - self = this; + password = this.$el.find('.password').val(); $.ajax({ url: '/ghost/login/', @@ -80,8 +79,7 @@ submitHandler: function (event) { event.preventDefault(); var email = this.$el.find('.email').val(), - password = this.$el.find('.password').val(), - self = this; + password = this.$el.find('.password').val(); $.ajax({ url: '/ghost/signup/',