@@ -30,9 +30,7 @@ Load `js-data-http.js` after `js-data.js`.
3030var adapter = new DSHttpAdapter ();
3131
3232var store = new JSData.DS ();
33-
34- store .defaults .DSHttpAdapter = adapter;
35- store .defaults .defaultAdapter = ' DSHttpAdapter' ;
33+ store .registerAdapter (' http' , adapter, { default: true });
3634
3735// "store" will now use the http adapter for all async operations
3836```
@@ -61,21 +59,25 @@ First, feel free to contact me with questions. [Mailing List](https://groups.io/
6159
6260## License
6361
62+ The MIT License (MIT)
63+
6464Copyright (c) 2014 Jason Dobry
6565
66- Permission is hereby granted, free of charge, to any person obtaining a copy of
67- this software and associated documentation files (the "Software"), to deal in
68- the Software without restriction, including without limitation the rights to
69- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
70- of the Software, and to permit persons to whom the Software is furnished to do
71- so, subject to the following conditions:
66+ Permission is hereby granted, free of charge, to any person obtaining a copy
67+ of this software and associated documentation files (the "Software"), to deal
68+ in the Software without restriction, including without limitation the rights
69+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
70+ copies of the Software, and to permit persons to whom the Software is
71+ furnished to do so, subject to the following conditions:
7272
7373The above copyright notice and this permission notice shall be included in all
7474copies or substantial portions of the Software.
7575
7676THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
77- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
78- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
79- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
80- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
81- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
77+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
78+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
79+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
80+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
81+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
82+ SOFTWARE.
83+
0 commit comments