mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Update Backbone/Underscore vendor folders.
Former-commit-id: 3317d501fe535d91eefab8a5dcb3a88a791e20ac
This commit is contained in:
11
vendor/backbone/test/view.js
vendored
11
vendor/backbone/test/view.js
vendored
@@ -286,11 +286,11 @@ $(document).ready(function() {
|
||||
test("dispose", 0, function() {
|
||||
var View = Backbone.View.extend({
|
||||
events: {
|
||||
click: function() { ok(false); }
|
||||
click: function() { fail(); }
|
||||
},
|
||||
initialize: function() {
|
||||
this.model.on('all x', function(){ ok(false); }, this);
|
||||
this.collection.on('all x', function(){ ok(false); }, this);
|
||||
this.model.on('all x', function(){ fail(); }, this);
|
||||
this.collection.on('all x', function(){ fail(); }, this);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -305,6 +305,11 @@ $(document).ready(function() {
|
||||
view.$el.click();
|
||||
});
|
||||
|
||||
test("dispose with non Backbone objects", 0, function() {
|
||||
var view = new Backbone.View({model: {}, collection: {}});
|
||||
view.dispose();
|
||||
});
|
||||
|
||||
test("view#remove calls dispose.", 1, function() {
|
||||
var view = new Backbone.View();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user