define([
  'svg',
  'svg.import',
  'backbone',
  'text!../../svg/Map.svg'
], function(
  SVG,
  svgImport,
  Backbone,
  map
) {

  var gameView = Backbone.View.extend({
    id: 'gameView',

    initialize: function() {
      this.showMap();
    },

    showMap: function() {
      var draw = SVG('drawing');
        draw.svg(map)

        var group = SVG.get('Group');
        group.each(function() {
            this.fill('#FF0000').stroke({color: '#000', width: 5})
        });
        group.each(function() {
          this.on('click', function() {
            this.fill('#0000FF');
          });
        })
    },

    nameSpace: "http://www.w3.org/2000/svg",
    _ensureElement: function() {
       if (!this.el) {
          var attrs = _.extend({}, _.result(this, 'attributes'));
          if (this.id) attrs.id = _.result(this, 'id');
          if (this.className) attrs['class'] = _.result(this, 'className');
          var $el = $(window.document.createElementNS(_.result(this, 'nameSpace'), _.result(this, 'tagName'))).attr(attrs);
          this.setElement($el.get(0), false);
       } else {
          this.setElement(_.result(this, 'el'), false);
       }
    },
  })

  return gameView;
});

@@ -34,16 +34,17 @@
 %0A  '
-backbone
+./svgView
 ',%0A 
@@ -104,24 +104,23 @@
 port,%0A  
-Backbone
+SVGView
 ,%0A  map%0A
@@ -145,17 +145,11 @@
 w = 
-Backbone.
+SVG
 View
@@ -477,699 +477,12 @@
     
-    group.each(function() %7B%0A          this.on('click', function() %7B%0A            this.fill('#0000FF');%0A          %7D);%0A        %7D)%0A    %7D,%0A%0A    nameSpace: %22http://www.w3.org/2000/svg%22,%0A    _ensureElement: function() %7B%0A       if (!this.el) %7B%0A          var attrs = _.extend(%7B%7D, _.result(this, 'attributes'));%0A          if (this.id) attrs.id = _.result(this, 'id');%0A          if (this.className) attrs%5B'class'%5D = _.result(this, 'className');%0A          var $el = $(window.document.createElementNS(_.result(this, 'nameSpace'), _.result(this, 'tagName'))).attr(attrs);%0A          this.setElement($el.get(0), false);%0A       %7D else %7B%0A          this.setElement(_.result(this, 'el'), false);%0A       %7D%0A    
 %7D,
+%0A%0A
 %0A  %7D

make svgView superclass