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) {
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',

View File

@ -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/',