21 lines
506 B
JavaScript
21 lines
506 B
JavaScript
define([
|
|
'lodash',
|
|
'taoQtiItem/qtiCreator/model/mixin/editable',
|
|
'taoQtiItem/qtiItem/core/Img'
|
|
], function(_, editable, Img){
|
|
"use strict";
|
|
var methods = {};
|
|
_.extend(methods, editable);
|
|
_.extend(methods, {
|
|
getDefaultAttributes : function(){
|
|
return {
|
|
src : '',
|
|
alt : ''
|
|
};
|
|
},
|
|
afterCreate : function(){
|
|
this.data('responsive', true);
|
|
}
|
|
});
|
|
return Img.extend(methods);
|
|
}); |