2013-05-25 08:38:43 +02:00
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
define([
|
2013-06-19 03:02:23 +02:00
|
|
|
|
'marionette',
|
|
|
|
|
'Settings/Notifications/AddItemView'
|
|
|
|
|
], function (Marionette, AddItemView) {
|
|
|
|
|
|
|
|
|
|
return Marionette.CompositeView.extend({
|
|
|
|
|
itemView : AddItemView,
|
|
|
|
|
itemViewContainer: '.notifications .items',
|
|
|
|
|
template : 'Settings/Notifications/AddTemplate',
|
2013-05-29 04:49:17 +02:00
|
|
|
|
|
|
|
|
|
itemViewOptions: function () {
|
|
|
|
|
return {
|
|
|
|
|
notificationCollection: this.notificationCollection
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
initialize: function (options) {
|
|
|
|
|
this.notificationCollection = options.notificationCollection;
|
|
|
|
|
}
|
2013-05-25 08:38:43 +02:00
|
|
|
|
});
|
|
|
|
|
});
|