Permalink
Browse files

Use shorter namespace syntax.

  • Loading branch information...
1 parent fe42044 commit 97fde278cc27feafcf22c49b2fd0328cb316da69 @Gozala committed Feb 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/api-utils/lib/event/core.js
@@ -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

0 comments on commit 97fde27

Please sign in to comment.