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