diff --git a/frontend/src/core/models/articleModel.js b/frontend/src/core/models/articleModel.js index c7501100d8..e3ec105ccd 100644 --- a/frontend/src/core/models/articleModel.js +++ b/frontend/src/core/models/articleModel.js @@ -6,11 +6,7 @@ define(function(require) { urlRoot: '/api/content/article', _parent: 'contentObjects', _siblings: 'articles', - _children: 'blocks', - - initialize: function(options) { - // TODO intentional override? - } + _children: 'blocks' }); return ArticleModel; diff --git a/frontend/src/core/models/blockModel.js b/frontend/src/core/models/blockModel.js index 1bed8c0558..a3d9425b9b 100644 --- a/frontend/src/core/models/blockModel.js +++ b/frontend/src/core/models/blockModel.js @@ -28,11 +28,7 @@ define(function(require) { '_extensions', 'themeSettings', '_onScreen' - ], - - initialize: function() { - // TODO interntional override? - } + ] }); return BlockModel; diff --git a/frontend/src/core/models/componentModel.js b/frontend/src/core/models/componentModel.js index f003af0ecc..8ab83cedf9 100644 --- a/frontend/src/core/models/componentModel.js +++ b/frontend/src/core/models/componentModel.js @@ -27,11 +27,7 @@ define(function(require) { 'version', 'themeSettings', '_onScreen' - ], - - initialize: function() { - // TODO intentional override? - } + ] }); return ComponentModel; diff --git a/frontend/src/core/models/componentTypeModel.js b/frontend/src/core/models/componentTypeModel.js index 4b61be0d30..4621605a66 100644 --- a/frontend/src/core/models/componentTypeModel.js +++ b/frontend/src/core/models/componentTypeModel.js @@ -9,10 +9,6 @@ define(function(require) { comparator: function(model) { return model.get('displayName'); - }, - - initialize: function() { - // TODO intentional override? } }); diff --git a/frontend/src/core/models/contentObjectModel.js b/frontend/src/core/models/contentObjectModel.js index 871f39747d..ece3f7d98b 100644 --- a/frontend/src/core/models/contentObjectModel.js +++ b/frontend/src/core/models/contentObjectModel.js @@ -12,12 +12,7 @@ define(function(require) { defaults: { _isSelected: false, _isExpanded: false - }, - - initialize: function() { - - }, - + } }); return ContentObjectModel; diff --git a/frontend/src/core/models/courseModel.js b/frontend/src/core/models/courseModel.js index 89e54ebc6d..9da53ed0e0 100644 --- a/frontend/src/core/models/courseModel.js +++ b/frontend/src/core/models/courseModel.js @@ -9,9 +9,6 @@ define(function(require) { _type: 'course', _children: 'contentObjects', - initialize : function(options) { - }, - getHeroImageURI: function () { if(Helpers.isAssetExternal(this.get('heroImage'))) { return this.get('heroImage'); diff --git a/frontend/src/core/models/extensionModel.js b/frontend/src/core/models/extensionModel.js index e5e5146d4c..6fc90b42e9 100644 --- a/frontend/src/core/models/extensionModel.js +++ b/frontend/src/core/models/extensionModel.js @@ -5,10 +5,7 @@ define(function(require) { var ExtensionModel = ContentModel.extend({ urlRoot: '/api/extensiontype', idAttribute: '_id', - _type: 'extension', - - initialize: function(){ - } + _type: 'extension' }); return ExtensionModel; diff --git a/frontend/src/modules/editor/course/views/editorCourseEditView.js b/frontend/src/modules/editor/course/views/editorCourseEditView.js index aa9f5b6323..1b627396cc 100644 --- a/frontend/src/modules/editor/course/views/editorCourseEditView.js +++ b/frontend/src/modules/editor/course/views/editorCourseEditView.js @@ -77,8 +77,8 @@ define(function(require) { var contentObjectModel = new ContentObjectModel(); contentObjectModel.save({ - title: 'Page Title', - displayTitle: 'Page Title', + title: Origin.l10n.t('app.placeholdernewpage'), + displayTitle: Origin.l10n.t('app.placeholdernewpage'), _type: 'page', _courseId: model.get('_id'), _parentId: model.get('_id')