And removing it, dangerous

This commit is contained in:
Tyler Renelle 2012-07-11 16:24:58 -04:00
parent 186bcac166
commit 42610f189e
3 changed files with 0 additions and 14 deletions

View file

@ -530,10 +530,6 @@ ready(function(model) {
exports.toggleDebug = function() {
return model.set('_debug', !model.get('_debug'));
};
exports.loadUserSession = function(e, el) {
model.set('_session.userId', model.get('_loadUserId'));
return window.location.reload();
};
exports.revive = function(e, el) {
var stats;
stats = model.at('_user.stats');

View file

@ -402,10 +402,6 @@ ready (model) ->
exports.toggleDebug = ->
model.set('_debug', !model.get('_debug'))
exports.loadUserSession = (e, el) ->
model.set('_session.userId', model.get('_loadUserId'))
window.location.reload()
exports.revive = (e, el) ->
stats = model.at '_user.stats'
stats.set 'hp', 50; stats.set 'lvl', 1; stats.set 'exp', 0; stats.set 'money', 0

View file

@ -66,12 +66,6 @@
{#if _debug}
<div class="alert">
<i class="icon-warning-sign"></i> <b>Debugging Options</b><br/><br/>
<form x-bind=submit:loadUserSession>
<div class=form-search>
<input type=text class=input-medium placeholder="User Id" value={_loadUserId} />
<button type=submit class=btn>Load Session</button>
</div>
</form>
<a x-bind=click:poormanscron class="btn">Cron</a>
<a x-bind=click:endOfDayTally class="btn">Tally</a>
<a x-bind=click:loadDebugDefaults class="btn">Tyler Defaults</a>