Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/thatcher/env-js
Browse files Browse the repository at this point in the history
  • Loading branch information
client9 committed May 4, 2010
2 parents 6bb95c4 + 4447cd2 commit 5c0c868
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions README
Expand Up @@ -113,31 +113,26 @@ Installing:

3) Optionally trigger "document ready" events in one of these ways:

4) Start processing of window(s)' event queue:
Envjs.wait();

All together, the steps could be:

a) simplest method:
load('env.rhino.js');
Envjs("some/file.html");
Envjs.wait();

b) jQuery ready method:
load('env.rhino.js');
load('jquery-1.3.2.js');
Envjs("some/file.html");
load('some-code-that-sets-up-jquery-onready-behaviors.js')
jQuery.ready();
Envjs.wait();

c) Other JavaScript frameworks have their own methods of setup, but the general pattern is:
// step 1: load env.js
// optionally: load your framework(s)
// step 2: tell env.js the base DOM to model
// optionally: run any setup code for your framework(s0
// step 3: tell the framework that the document is loaded
// step 4: Envjs.wait();

Note that env.js is currently limited to loading a single HTML page
from the original window. If you are going to load multiple pages in
Expand Down
2 changes: 0 additions & 2 deletions specs/env.qunit.js
Expand Up @@ -35,6 +35,4 @@ QUnit.done = function( fail, pass){
};
QUnit.start = function(){
_start();
Envjs.wait();
}

1 change: 0 additions & 1 deletion specs/parser/boot.js
Expand Up @@ -18,4 +18,3 @@ load('dist/timer.js');
load('dist/parser.js');
load('specs/parser/spec.js');
start();
Envjs.wait();
1 change: 0 additions & 1 deletion specs/timer/boot.js
Expand Up @@ -14,4 +14,3 @@ load('dist/timer.js');
load('specs/timer/spec.js');

start();
Envjs.wait();
1 change: 0 additions & 1 deletion specs/window/boot.js
Expand Up @@ -23,4 +23,3 @@ load('specs/window/spec.js');


location = 'specs/window/index.html';
Envjs.wait();
1 change: 0 additions & 1 deletion specs/xhr/boot.js
Expand Up @@ -19,4 +19,3 @@ load('dist/xhr.js');
load('local_settings.js');
load('specs/xhr/spec.js');
start();
Envjs.wait();

0 comments on commit 5c0c868

Please sign in to comment.