Fixing unused variables

This commit is contained in:
Hannah Wolfe 2013-08-06 09:00:12 +01:00
parent 559edb10a6
commit 1e954aace0
2 changed files with 4 additions and 8 deletions

View File

@ -119,8 +119,7 @@
handleStatus: function (e) { handleStatus: function (e) {
e.preventDefault(); e.preventDefault();
var status = $(e.currentTarget).attr('data-set-status'), var status = $(e.currentTarget).attr('data-set-status'),
model = this.model, model = this.model;
self = this;
if (status === 'publish-on') { if (status === 'publish-on') {
Ghost.notifications.addItem({ Ghost.notifications.addItem({
@ -158,8 +157,7 @@
if (e) { if (e) {
e.preventDefault(); e.preventDefault();
} }
var model = this.model, var model = this.model;
self = this;
this.savePost().then(function () { this.savePost().then(function () {
Ghost.notifications.addItem({ Ghost.notifications.addItem({
type: 'success', type: 'success',

View File

@ -45,8 +45,7 @@
submitHandler: function (event) { submitHandler: function (event) {
event.preventDefault(); event.preventDefault();
var email = this.$el.find('.email').val(), var email = this.$el.find('.email').val(),
password = this.$el.find('.password').val(), password = this.$el.find('.password').val();
self = this;
$.ajax({ $.ajax({
url: '/ghost/login/', url: '/ghost/login/',
@ -80,8 +79,7 @@
submitHandler: function (event) { submitHandler: function (event) {
event.preventDefault(); event.preventDefault();
var email = this.$el.find('.email').val(), var email = this.$el.find('.email').val(),
password = this.$el.find('.password').val(), password = this.$el.find('.password').val();
self = this;
$.ajax({ $.ajax({
url: '/ghost/signup/', url: '/ghost/signup/',