Skip to content

Instantly share code, notes, and snippets.

@a-ignatov-parc
Created March 25, 2013 07:49
Show Gist options
  • Save a-ignatov-parc/5235522 to your computer and use it in GitHub Desktop.
Save a-ignatov-parc/5235522 to your computer and use it in GitHub Desktop.
asyncTest('bind two events with name "test.a1" and "test.a2" then unbind "test" trigger "test"', 1, function() {
var observatory = new window.WebApp.Observatory();
observatory.on('test', function() {
equal(this.a, 1, 'context is ok');
}, {
a: 1
});
start();
observatory.trigger('test');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment