Skip to content

Commit

Permalink
Fix IE "invalid calling object" bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Feb 28, 2014
1 parent 1bbaca8 commit cf89c25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/jsonld.js
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,7 @@ if(_browser && typeof global.JsonLdProcessor === 'undefined') {
// define setImmediate and nextTick
if(typeof process === 'undefined' || !process.nextTick) {
if(typeof setImmediate === 'function') {
jsonld.setImmediate = setImmediate;
jsonld.nextTick = function(callback) {
jsonld.setImmediate = jsonld.nextTick = function(callback) {
return setImmediate(callback);
};
}
Expand Down

0 comments on commit cf89c25

Please sign in to comment.