Skip to content

Commit

Permalink
Remove timer from platform code; add sync
Browse files Browse the repository at this point in the history
  • Loading branch information
smparkes committed Oct 17, 2009
1 parent ec55845 commit 26a4d83
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/platform/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@ var Envjs = function(){

//resolves location relative to base or window location
$env.location = function(path, base){};

//For Java the window.timer is created using the java.lang.Thread in combination
//with the java.lang.Runnable
$env.timer = function(fn, time){};


$env.sync = function(fn){
var self = this;
return function(){ return fn.apply(self,arguments); }
}

$env.javaEnabled = false;

//Used in the XMLHttpRquest implementation to run a
Expand Down

0 comments on commit 26a4d83

Please sign in to comment.