/**
 * https://github.com/chrisweb
 * 
 * Copyright 2014 weber chris
 * Released under the MIT license
 * https://chris.lu
 */

/**
 * 
 * events manager
 * 
 * @param {type} Backbone
 * @param {type} _
 * @returns {unresolved}
 */
define([
    'backbone',
    'underscore'
], function(Backbone, _) {
    'use strict';
    
    var EventsManager;
    
    if (EventsManager === undefined) {
        
        EventsManager = _.extend({}, Backbone.Events);
        
    }

    return EventsManager;

});

@@ -290,24 +290,29 @@
 kbone, _) %7B%0A
+    %0A
     'use str
@@ -330,17 +330,17 @@
     var 
-E
+e
 ventsMan
@@ -347,53 +347,170 @@
 ager
-;%0A    %0A    if (EventsManager === undefined) %7B
+ = %7B%0A        constants: %7B%0A%0A            // router%0A            'ROUTER_PREROUTE': 'router:preRoute',%0A            'ROUTER_POSTROUTE': 'router:postRoute'%0A            
 %0A   
@@ -514,25 +514,42 @@
         
+%7D
 %0A 
+   %7D;%0A
        
+ %0A    var 
 EventsMa
@@ -569,10 +569,21 @@
 end(
-%7B%7D
+eventsManager
 , Ba
@@ -601,23 +601,8 @@
 ts);
-%0A        %0A    %7D
 %0A%0A  

add constants to eventsManager for event names