bernat/best_in_place — pull request #228 by leomao10 (2013-01-30 04:03:07+00:00)
Title: Fix tests

Hi @bernat,

I submited this pull request for the current failing specs in master branch.

Please noted that I remove IE7 support for jQuery.purr.js, as jQuery 1.9 doesn't support `jQuery.browser.msie` anymore.

Also, I found that most of the errors are caused by code like this:

````ruby
page.execute_script <<-JS
jQuery("##{id} form textarea").val('#{escape_javascript new_value.to_s}');
jQuery("##{id} form textarea").blur(); # <- This code doesn't work
JS
````

I found that if I call .blur() again, it works again.

````ruby
page.execute_script <<-JS
jQuery("##{id} form textarea").val('#{escape_javascript new_value.to_s}');
jQuery("##{id} form textarea").blur();
jQuery("##{id} form textarea").blur(); # <- This code work
JS
````
I am not sure what is the cause for this -_-b Google do not gave me any useful info.

I might change it once I figure out what is going on.