Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backbone.Controller API #1438

Closed
oliverfoster opened this issue Feb 28, 2017 · 0 comments
Closed

Backbone.Controller API #1438

oliverfoster opened this issue Feb 28, 2017 · 0 comments
Assignees

Comments

@oliverfoster
Copy link
Member

oliverfoster commented Feb 28, 2017

Some core modules use the Backbone.Events API, an initialize function and a model, without the need for full View or Model support.

This is to make code clearer by having a Backbone class for Controllers.

accessibility.js
Uses Backbone.Events and initialize.
https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/accessibility.js#L7
https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/accessibility.js#L544-L547

logging.js
Uses Backbone.Event and initialize, doesn't need Model behaviour.
https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/logging.js#L2

offlineStorage.js
Will need the Backbone.Events API to allow "set" events.
https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/offlineStorage.js#L8

startController.js
Uses controller behaviour with an initialize function but creates its own implementation
https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/startController.js#L5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant