documentcloud/backbone — Issue #703: View is undefined even though I already declare it 
Author: nXqd
Created: 2011-10-30 03:31:03+00:00
State: open

This really confuses me, I think I'm stupid but I've searched and do what ever I can.
Whenever I declare a view and then declare a new view, jasmine always return "undefined is not a function". This is my view code

```javascript
window.LocationView = Backbone.View.extend({
initialize: function() {
// create new marker first
this.marker = new google.maps.Marker({
title: this.model.get('name'),
draggable: true,
animation: google.maps.Animation.DROP,
position: new google.maps.LatLng(this.model.get('lat'), this.model.get('long')), // give the position here
});

// bind events
this.model.bind('change', this.render, this);
},
render: function() {
this.marker.setTitle(this.model.get("name"));
this.marker.setPosition(new google.maps.LatLng(this.model.get('lat'), this.model.get('long')));
},
});
```

Thanks for watching this stupid question ="=