Files
roi-theme/wp-content/plugins/thrive-ab-page-testing/assets/js/admin/collections/breadcrumbs.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

34 lines
613 B
JavaScript
Executable File

/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/16/2018
* Time: 10:56 AM
*/
var base = require( './base' ),
BreadcrumbLink = require( '../models/breadcrumb-link' );
/**
* Breadcrumb links collection
*/
module.exports = base.extend( {
model: Backbone.Model.extend( {
defaults: {
hash: '',
label: ''
}
} ),
/**
* helper function allows adding items to the collection easier
*
* @param {string} route
* @param {string} label
*/
add_page: function ( route, label ) {
var _model = new BreadcrumbLink( {
hash: route,
label: label
} );
return this.add( _model );
}
} );