DarthFubuMVC/fubuvalidation-js — pull request #1 by emiaj (2012-08-30 00:11:40+00:00)
Title: Update fubuvalidation.js

Constrained the call to findElement by checking that the error field member is not null or empty.
When a error is registered as follows:
https://gist.github.com/3520765
...accordingly to this test:
https://github.com/DarthFubuMVC/fubuvalidation/blob/master/src/FubuValidation.Tests/NotificationTester.cs#L87
...it will serialize the error with field equal to string.Empty
When trying to locate the element in the client of this error, jquery will throw an exception because of the invalid search expression fubuvalidation passes to it.
Such as:
$("#",context.form) => Error: Syntax error, unrecognized expression: #