Skip to content

Commit

Permalink
Merged 'requirejs_unexpected_token' of git://github.com/arosboro/cali…
Browse files Browse the repository at this point in the history
…pso into arosboro-requirejs_unexpected_token

Merged manually to remove additional code changes which had no functionality changes.
  • Loading branch information
richtera committed Apr 18, 2013
1 parent 79d6fad commit 220159e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/core/aloha/static/lib/require.js
Original file line number Diff line number Diff line change
Expand Up @@ -1861,14 +1861,15 @@ var requirejs, require, define;
//if we can NOT find [native code] then it must NOT natively supported.
//in IE8, node.attachEvent does not have toString()
//Note the test for "[native code" with no closing brace, see:
//https://github.com/jrburke/requirejs/issues/273 !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) && !isOpera) {
//https://github.com/jrburke/requirejs/issues/273
!(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) &&
!isOpera) {
//Probably IE. IE (at least 6-8) do not fire
//script onload right after executing the script, so
//we cannot tie the anonymous define call to a name.
//However, IE reports the script as being in 'interactive'
//readyState at the time of the define call.
useInteractive = true{
;
useInteractive = true;
}

node.attachEvent('onreadystatechange', context.onScriptLoad);
Expand Down

0 comments on commit 220159e

Please sign in to comment.