Skip to content

Commit

Permalink
added docs for standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
danwrong committed Mar 26, 2013
1 parent 1d6eb93 commit 356a434
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,26 @@ define(
);
```

## Using the standalone version

The standalone version of flight.js does not require a script loader such as require.js and instead exposes all of its modules as properties of a global variable, flight:

```html
<script src='jquery.js'></script>
<script src='es5-shim.js'></script>
<script src='es5-sham.js'></script>
<script src='flight.js'></script>
<script>
var MyComponent = flight.component(function() {
this.after('initialize', function() {
// ...
});
});
MyComponent.attachTo('.thing');
</script>


## Debugging

Flight ships with a debug module which can help you trace the sequence of event triggering and binding. By default
Expand Down

0 comments on commit 356a434

Please sign in to comment.