Skip to content

Commit

Permalink
more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
brianleroux committed Oct 4, 2010
1 parent a4f5f35 commit b7c12aa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2009 Brian LeRoux
Copyright (c) 2009, 2010 Brian LeRoux

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ Lawnchair does not assume how you want to use it. At a minimum will be required

- Lawnchair.js
- LawnchairAdaptorHlpers.js
- one of the adaptor js files
- if you are using Lawnchair with Adobe AIR you can find example xml config files in `/util`

Its probably a good idea to concat/minify these files you require. Its a common request to
*extras*

- One of the adaptor js files can found in `./src/adaptors`.
- Adobe AIR adaptor example xml config files can be found in `./util`.
- CouchDB adaptor requires the http://localhost:5984/_utils/script/couch.js lib.

Its probably a good idea to concat/minify the js you require. Its a common request to
provide a single file that does some sort of feature detection which, in theory, is nice
but in practice its far more efficient to only load what you need (especially on mobile).

Expand All @@ -43,13 +47,13 @@ Open `./spec/public/adaptors` and select an adaptor spec to run the tests in a b
you have Ruby and Sinatra installed you can kick up a little server to run tests. These same
tests also happen to be deployed at http://lawnchair.heroku.com (useful for testing on devices).

TODO
COMING SOON
====
- capacity tests
- performance tests
- pagination
- encryption
- rename adapotors
- rename adaptors
- rename to helpers
- add helpers.extend

Expand Down
2 changes: 1 addition & 1 deletion src/Lawnchair.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Lawnchair.prototype = {
'blackberry':window.BlackBerryPersistentStorageAdaptor,
'couch':window.CouchAdaptor
};
this.adaptor = opts.adaptor ? new adaptors[opts.adaptor](opts) : new WebkitSQLiteAdaptor(opts);
this.adaptor = opts.adaptor ? new adaptors[opts.adaptor](opts) : new DOMStorageAdaptor(opts);

// Check for native JSON functions.
if (!JSON || !JSON.stringify) throw "Native JSON functions unavailable - please include http://www.json.org/json2.js or run on a decent browser :P";
Expand Down

0 comments on commit b7c12aa

Please sign in to comment.