34 lines
546 B
JavaScript
34 lines
546 B
JavaScript
|
/**
|
||
|
* @file
|
||
|
* A Backbone Model for collapsible menus.
|
||
|
*/
|
||
|
|
||
|
(function (Backbone, Drupal) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
/**
|
||
|
* Backbone Model for collapsible menus.
|
||
|
*
|
||
|
* @constructor
|
||
|
*
|
||
|
* @augments Backbone.Model
|
||
|
*/
|
||
|
Drupal.toolbar.MenuModel = Backbone.Model.extend(/** @lends Drupal.toolbar.MenuModel# */{
|
||
|
|
||
|
/**
|
||
|
* @type {object}
|
||
|
*
|
||
|
* @prop {object} subtrees
|
||
|
*/
|
||
|
defaults: /** @lends Drupal.toolbar.MenuModel# */{
|
||
|
|
||
|
/**
|
||
|
* @type {object}
|
||
|
*/
|
||
|
subtrees: {}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}(Backbone, Drupal));
|