I’m trying to write a client-only prototype, but the adapters I tried aren’t working. FixtureAdapter is just partially implemented and LSAdapter doesn’t load somehow.
I tried it like this, but when I debug the code, none of the LSAdapter method is called, just the ones in ember-data.js.
index.html
<script src="lib/jquery-1.10.2.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="lib/handlebars-1.1.2.js"></script>
<script src="lib/ember-1.6.1.js"></script>
<script src="lib/ember-data.js"></script>
<script src="lib/localstorage_adapter.js"></script>
app.js
window.App = Ember.Application.create();
App.ApplicationSerializer = DS.LSSerializer.extend();
App.ApplicationAdapter = DS.LSAdapter.extend({
namespace: 'App-Data'
});
App.ApplicationStore = DS.Store.extend({
adapter: App.ApplicationAdapter
});