Skip to content

Backbone.Controller API #1438

Description

@oliverfoster

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

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions