UNPKG

bugcore

Version:

bugcore is a JavaScript library that provides a foundational architecture for object oriented JS

60 lines (40 loc) 1.76 kB
/* * Copyright (c) 2016 airbug Inc. http://airbug.com * * bugcore may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Annotations //------------------------------------------------------------------------------- //@Export('IEventDispatcher') //@Require('Interface') //------------------------------------------------------------------------------- // Context //------------------------------------------------------------------------------- require('bugpack').context("*", function(bugpack) { //------------------------------------------------------------------------------- // BugPack //------------------------------------------------------------------------------- var Interface = bugpack.require('Interface'); //------------------------------------------------------------------------------- // Declare Interface //------------------------------------------------------------------------------- /** * @interface */ var IEventDispatcher = Interface.declare({ _name: "IEventDispatcher", //------------------------------------------------------------------------------- // Interface Methods //------------------------------------------------------------------------------- /** * @param {Event} event * @param {?boolean=} bubbles */ dispatchEvent: function(event, bubbles) {} }); //------------------------------------------------------------------------------- // Exports //------------------------------------------------------------------------------- bugpack.export('IEventDispatcher', IEventDispatcher); });