Skip to content

Commit

Permalink
Use shorter namespace syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala committed Feb 8, 2012
1 parent fe42044 commit 97fde27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-utils/lib/event/core.js
Expand Up @@ -9,9 +9,9 @@
const UNCAUGHT_ERROR = 'An error event was emitted for which there was no listener.';
const BAD_LISTENER = 'The event listener must be a function.';

let { Namespace } = require('../namespace');
const { ns } = require('../namespace');

const event = Namespace();
const event = ns();

// Utility function to access given event `target` object's event listeners for
// the specific event `type`. If listeners for this type does not exists they
Expand Down

0 comments on commit 97fde27

Please sign in to comment.