Fixes Issue #4

This commit is contained in:
Peter Cottle 2013-02-16 13:27:40 -08:00
parent 6eeaf8a13f
commit a97e575f63
5 changed files with 12 additions and 7 deletions

View file

@ -17849,11 +17849,12 @@ var SeriesView = BaseView.extend({
},
click: function(ev) {
if (!ev || !ev.srcElement) {
var element = ev.srcElement || ev.currentTarget;
if (!element) {
console.warn('wut, no id'); return;
}
var id = $(ev.srcElement).attr('data-id');
var id = $(element).attr('data-id');
this.navEvents.trigger('clickedID', id);
}
});
@ -25436,11 +25437,12 @@ var SeriesView = BaseView.extend({
},
click: function(ev) {
if (!ev || !ev.srcElement) {
var element = ev.srcElement || ev.currentTarget;
if (!element) {
console.warn('wut, no id'); return;
}
var id = $(ev.srcElement).attr('data-id');
var id = $(element).attr('data-id');
this.navEvents.trigger('clickedID', id);
}
});

File diff suppressed because one or more lines are too long

1
build/bundle.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -409,7 +409,7 @@
For a much easier time perusing the source, see the individual files at:
https://github.com/pcottle/learnGitBranching
-->
<script src="build/bundle.js"></script>
<script src="build/bundle.min.b8584255.js"></script>
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
The downside? No raw logs to parse for analytics, so I have to include

View file

@ -283,11 +283,12 @@ var SeriesView = BaseView.extend({
},
click: function(ev) {
if (!ev || !ev.srcElement) {
var element = ev.srcElement || ev.currentTarget;
if (!element) {
console.warn('wut, no id'); return;
}
var id = $(ev.srcElement).attr('data-id');
var id = $(element).attr('data-id');
this.navEvents.trigger('clickedID', id);
}
});