Skip to content

Commit

Permalink
fixes ExultCorp#23 Added model registration and fixed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Jun 4, 2020
1 parent 60c2e6a commit e4b6a0c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions js/adapt-contrib-flipcard.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
* Maintainers - Himanshu Rajotia <[email protected]>
*/
define([
'coreViews/componentView',
'coreJS/adapt'
], function(ComponentView, Adapt) {
'core/js/models/componentModel',
'core/js/views/componentView',
'core/js/adapt'
], function(ComponentModel, ComponentView, Adapt) {

var Flipcard = ComponentView.extend({

Expand Down Expand Up @@ -152,8 +153,11 @@ define([
}
}
});

Adapt.register('flipcard', Flipcard);

Adapt.register('flipcard', {
model: ComponentModel.extend({}),
view: Flipcard
});

return Flipcard;

Expand Down

0 comments on commit e4b6a0c

Please sign in to comment.