Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

resolving merge conflict with derickbailey-listenTo_yourself

  • Loading branch information...
commit abccd9883e65c122f1df106721f4517f61539733 2 parents 8a42d53 + 99091fb
@tgriesser tgriesser authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/events.js
View
6 test/events.js
@@ -86,6 +86,12 @@ $(document).ready(function() {
b.trigger('change');
});
+ test("listenTo yourself", 1, function(){
+ var e = _.extend({}, Backbone.Events);
+ e.listenTo(e, "foo", function(){ ok(true); });
+ e.trigger("foo");
+ });
+
test("trigger all for each event", 3, function() {
var a, b, obj = { counter: 0 };
_.extend(obj, Backbone.Events);
Please sign in to comment.
Something went wrong with that request. Please try again.