/*
 * Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
 *  
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"), 
 * to deal in the Software without restriction, including without limitation 
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 
 * and/or sell copies of the Software, and to permit persons to whom the 
 * Software is furnished to do so, subject to the following conditions:
 *  
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *  
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
 * DEALINGS IN THE SOFTWARE.
 * 
 */

/* global require, console */

require.config({
    packages : [
        { name: "playground", location: "../../lib" },
        { name: "ds", location: "js" }
    ],
    paths: {
        "bluebird" : "../../bower_components/bluebird/js/browser/bluebird",
        "eventEmitter": "../../bower_components/eventEmitter/EventEmitter"
    }
});

define(function (require) {
    "use strict";

    var playground = require("playground"),
        dm = require("playground/documentmanager"),
        ds = require("ds"),
        layers = require("ds/layers");

    var _setup = function () {
        console.log("stuff", playground, dm, ds, layers);
    };

    if (document.readyState === "complete") {
        _setup();
    } else {
        window.addEventListener("load", _setup);
    }

});

@@ -1561,26 +1561,23 @@
     var 
-playground
+adapter
  = requi
@@ -1590,16 +1590,52 @@
 ayground
+/adapter%22),%0A        ds = require(%22ds
 %22),%0A    
@@ -1682,33 +1682,37 @@
 ager%22),%0A        
-d
+layer
 s = require(%22ds%22
@@ -1702,32 +1702,39 @@
 rs = require(%22ds
+/layers
 %22),%0A        laye
@@ -1726,33 +1726,39 @@
 ),%0A        layer
-s
+manager
  = require(%22ds/l
@@ -1753,25 +1753,39 @@
 equire(%22
-ds/layers
+playground/layermanager
 %22);%0A%0A   
@@ -1845,33 +1845,38 @@
 f%22, 
-playground
+adapter, ds
 , dm, 
-d
+layer
 s, layer
 s);%0A
@@ -1871,17 +1871,23 @@
 s, layer
-s
+manager
 );%0A    %7D

add a few more example dependencies