Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Update underscore.js to v1.8.3, backbone.js to v1.2.3 #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions spec/javascripts/composite_view_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ describe("Support.CompositeView", function() {

var blankView = Support.CompositeView.extend({
render: function() {
}
},

foo: function() {}
});

var normalView = Backbone.View.extend({
Expand Down Expand Up @@ -41,14 +43,12 @@ describe("Support.CompositeView", function() {

it("sets parent before rendering child view", function() {
var view = new blankView();
var spy = sinon.spy(view, 'on');
var spy = sinon.spy(view, "foo");

var viewWithParentBinding = Support.CompositeView.extend({
render: function() {
this.listenTo(this.parent, 'foo', this.foo);
this.parent.foo();
return this;
},

foo: function() {
}
});

Expand Down
Loading