Skip to content

Commit

Permalink
dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrans committed Oct 18, 2012
1 parent 1942d88 commit ec68ee7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions dist/postscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,6 @@ Copyright (c) 2012 Derek Brans, MIT license https://github.com/krux/postscribe/b
var doc = this.doc = this.root.ownerDocument;

var win = this.win = doc.defaultView || doc.parentWindow;
// Creates win.eval in IE. I can't remember where I saw this trick.
if( win.execScript && !win['eval'] ) {
win.execScript('0');
}
}

Worker.prototype.exec = function(task, done) {
Expand All @@ -642,7 +638,11 @@ Copyright (c) 2012 Derek Brans, MIT license https://github.com/krux/postscribe/b

Worker.prototype.script_inline = function(task, done) {
try {
this.win['eval'](task.expr);
if(this.win.execScript) {
this.win.execScript(task.expr);
} else {
this.win['eval'](task.expr);
}
} catch(e) {
// TODO: this.options.error(e);
}
Expand Down
Loading

0 comments on commit ec68ee7

Please sign in to comment.