Skip to content

Commit

Permalink
Fixed Sizzle error: "unrecognized expression"
Browse files Browse the repository at this point in the history
  • Loading branch information
vladtsf authored and thedersen committed Dec 27, 2012
1 parent c61f6b7 commit 529d33e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backbone-validation.js
Expand Up @@ -342,7 +342,7 @@ Backbone.Validation = (function(_){
// view becomes valid. Removes any error message.
// Should be overridden with custom functionality.
valid: function(view, attr, selector) {
view.$('[' + selector + '~=' + attr + ']')
view.$('[' + selector + '~="' + attr + '"]')
.removeClass('invalid')
.removeAttr('data-error');
},
Expand All @@ -351,7 +351,7 @@ Backbone.Validation = (function(_){
// Adds a error message.
// Should be overridden with custom functionality.
invalid: function(view, attr, error, selector) {
view.$('[' + selector + '~=' + attr + ']')
view.$('[' + selector + '~="' + attr + '"]')
.addClass('invalid')
.attr('data-error', error);
}
Expand Down

0 comments on commit 529d33e

Please sign in to comment.