/**
 * copyright 2012-2015 Nick Jennings (https://github.com/silverbucket)
 *
 * node-connection-share is licensed under the MIT license.
 * See the LICENSE file for details.
 *
 * The latest version of node-connection-share can be found here:
 *   git://github.com/silverbucket/node-connection-share.git
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */

var Manager    = require('./manager.js');

module.exports = function (namespace) {

  var manager  = new Manager(namespace);

  return function (scope) {
    manager.__getScope = function () {
      return scope;
    };
    return manager;
  };
};

@@ -629,16 +629,60 @@
   return
+ %7B%0A    namespace: namespace,%0A    getManager:
  functio
@@ -697,16 +697,18 @@
 ) %7B%0A    
+  
 manager.
@@ -736,24 +736,26 @@
  () %7B%0A      
+  
 return scope
@@ -764,15 +764,19 @@
     
+  
 %7D;%0A    
+ 
+ 
 retu
@@ -787,16 +787,22 @@
 anager;%0A
+    %7D%0A
   %7D;%0A%7D;%0A

return as an object for storing, then expose getManager function