-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMediator.js
38 lines (25 loc) · 830 Bytes
/
Mediator.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
///////////////////////////////////////////////////////////////////////////
//
// @class : Wax_Mediator
// @Comments : mediator singleton
//
///////////////////////////////////////////////////////////////////////////
define(function(require){
// @imports
var Mediator = require('mediator-js');
// @private
var _mediator = new Mediator();
return (_mediator)? _mediator : new Mediator();
});
/* ALT -
Dont know if the facade should extend the mediator?
I want buttons potentially publishing notice,
and not have to run it up through to the module facade
// Mediator.js instanced and extended, to provide Facade Mediator methods
var Mediator = require('mediator-js');
var Class = require('class');
var Wax_Mediator = Class.extend(function(){
return new Mediator();
}());
return Wax_Mediator;
*/