-
Notifications
You must be signed in to change notification settings - Fork 19
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
not compatible with Framework 5.5 #23
Comments
This is my fault, apologies.
This component also needs updating. This line is deprecated https://github.com/ExultCorp/adapt-contrib-flipcard/blob/master/js/adapt-contrib-flipcard.js#L156 You need to register a model such as: /*
* adapt-contrib-flipcard
* License - https://github.com/ExultCorp/adapt-contrib-flipcard/blob/master/LICENSE
* Maintainers - Himanshu Rajotia <[email protected]>
*/
define([
'core/js/models/componentModel', // add this
'core/js/views/componentView', // change these to use proper paths
'core/js/adapt'
], function(ComponentModel, ComponentView, Adapt) {
// missing code
Adapt.register('flipcard', {
model: ComponentModel.extend({}), // register the model, it should be an extension of ComponentModel, an empty extension is fine
view: Flipcard
});
return Flipcard;
}); This way, flipcard has a model and view for rendering: Rather than relying on the All core components now register both models and views. It keeps a nice separation of behaviour. Accordion, MCQ. Reference to original comment: #18 (comment) |
Hi oliver, |
It works because |
Thanks, Oliver |
Hello, this plug-in does not work with latest Adapt framework 5.5.
It would be great if you could update.
The text was updated successfully, but these errors were encountered: