Skip to content

Commit

Permalink
avoiding cache on iframes and a fix when theres no global
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiomcosta committed Sep 19, 2011
1 parent f448756 commit 7db4cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/JSSpecHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ var $try = function(){
try {
Mock.mocks[i].run();
} catch(e) {
console && console.log(e);
window.console && console.log(e);
}
}
global.runSpecs();
Expand All @@ -169,7 +169,7 @@ var $try = function(){
Mock.templateCounter++;
template.style.display = 'none';
template.setAttribute('frameborder', 0);
template.src = url;
template.src = url + (~url.indexOf('?') ? '&' : '?') + '_' + (+new Date);
document.getElementsByTagName('body')[0].appendChild(template);
};

Expand Down

0 comments on commit 7db4cdd

Please sign in to comment.