/public/js/app/mixins/CommonMixin.js
JavaScript | 19 lines | 9 code | 5 blank | 5 comment | 0 complexity | 527e3f18fcb9dc75452f51941211becb MD5 | raw file
- // CommonMixin.js
- // Shared by model, collection and view
- // --------
- define(["jquery", "backbone"],
- function($, Backbone) {
- // common setting and functions
- // such as global event-bus for pubsub
- var Mixin = {
- apiUrl: "api/v1",
- pubsub: _.extend({}, Backbone.Events)
- };
- return Mixin;
- }
- );