Permalink
Browse files

Fix undeclared var

  • Loading branch information...
1 parent adb0ddf commit d20396520c7a2f0a982649529a594d28671ffa1b @jtsternberg jtsternberg committed Mar 3, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/cmb.js
View
4 js/cmb.js
@@ -198,9 +198,9 @@
.on( 'click', '.add-row-button', function(e) {
e.preventDefault();
- self = $(this);
+ var $self = $(this);
- var tableselector = '#'+ self.data('selector');
+ var tableselector = '#'+ $self.data('selector');
var $table = $(tableselector);
var row = $('.empty-row', $table).clone(true);
row.removeClass('empty-row').addClass('repeat-row');

0 comments on commit d203965

Please sign in to comment.