PageRenderTime 34ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

/public/js/app/mixins/CommonMixin.js

https://github.com/Reflen/spinel
JavaScript | 19 lines | 9 code | 5 blank | 5 comment | 0 complexity | 527e3f18fcb9dc75452f51941211becb MD5 | raw file
  1. // CommonMixin.js
  2. // Shared by model, collection and view
  3. // --------
  4. define(["jquery", "backbone"],
  5. function($, Backbone) {
  6. // common setting and functions
  7. // such as global event-bus for pubsub
  8. var Mixin = {
  9. apiUrl: "api/v1",
  10. pubsub: _.extend({}, Backbone.Events)
  11. };
  12. return Mixin;
  13. }
  14. );