mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
OMG unstable finding bugs
This commit is contained in:
parent
6723f4c13a
commit
fd353911c5
2 changed files with 3 additions and 3 deletions
|
@ -228,8 +228,8 @@ var CommandView = Backbone.View.extend({
|
||||||
// for changes that are just comestic, we actually only want to toggle classes
|
// for changes that are just comestic, we actually only want to toggle classes
|
||||||
// with jquery rather than brutally delete a html. doing so allows us
|
// with jquery rather than brutally delete a html. doing so allows us
|
||||||
// to nicely fade things
|
// to nicely fade things
|
||||||
var changes = changeEvent.changes;
|
var changes = changeEvent.changes || {};
|
||||||
var changeKeys = _.keys(changes);
|
var changeKeys = Object.keys(changes);
|
||||||
if (_.difference(changeKeys, ['status']).length === 0) {
|
if (_.difference(changeKeys, ['status']).length === 0) {
|
||||||
this.updateStatus();
|
this.updateStatus();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -328,7 +328,7 @@ var ModalAlert = ContainedBase.extend({
|
||||||
template: _.template($('#modal-alert-template').html()),
|
template: _.template($('#modal-alert-template').html()),
|
||||||
|
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
options = options || {};
|
this.options = options || {};
|
||||||
this.JSON = {
|
this.JSON = {
|
||||||
title: options.title || 'Something to say',
|
title: options.title || 'Something to say',
|
||||||
text: options.text || 'Here is a paragraph',
|
text: options.text || 'Here is a paragraph',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue