/static/scripts/mvc/annotations.js

https://bitbucket.org/james_taylor/galaxy-webapp-refactoring · JavaScript · 35 lines · 12 code · 6 blank · 17 comment · 0 complexity · d8fe8cd635fc08ff60b6eff03bcfb407 MD5 · raw file

  1. /*==============================================================================
  2. Backbone MV for Annotations
  3. TODO:
  4. ==============================================================================*/
  5. /** Single Tag model
  6. */
  7. var Annotation = BaseModel.extend( LoggableMixin ).extend({
  8. // uncomment this out see log messages
  9. logger : console,
  10. toString : function(){
  11. return 'Annotation()';
  12. }
  13. });
  14. //------------------------------------------------------------------------------
  15. /** Single Tag view
  16. */
  17. var AnnotationView = BaseView.extend( LoggableMixin ).extend({
  18. // uncomment this out see log messages
  19. logger : console,
  20. toString : function(){
  21. return 'AnnotationView()';
  22. }
  23. });
  24. //==============================================================================
  25. /** YAGNI? A collection of Annotations, mainView?
  26. */