Permalink
Browse files

jquery fixed the firefox issues with getting a window location on a l…

…ocal file
  • Loading branch information...
johnbender committed Sep 15, 2010
1 parent ec33df9 commit e1d0a9b7a81c53214f059a7e886e603e2b5cd6f9
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/jquery.flawed.js
  2. +1 −1 spec/unit/spec.js
View
@@ -10,7 +10,7 @@ jQuery.flawed = function(scope){
} catch (e) {
// TODO alter headers to include x-javascript-error-report or some such
jQuery.post(flawed_context.post_url, {
- url: 'foo'
+ url: $(location).attr('href')
});
throw e;
View
@@ -39,7 +39,7 @@ describe('jQuery.flawed', function(){
it('should post the url', function(){
jQuery.flawed.post_url = '/foo';
expect(jQuery).to(receive, 'post').with_args('/foo', {
- url: 'foo'
+ url: $(location).attr('href')
});
expect_reraise();

0 comments on commit e1d0a9b

Please sign in to comment.