Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

hooked up uglifyjs and created new builds

  • Loading branch information...
commit d148d3c1f434128e3fe7e1207183509abf81b448 1 parent d039505
Christoph Burgdorf authored March 31, 2012
20  build/swiftcore.js
@@ -79,10 +79,6 @@
79 79
         return this;
80 80
     };
81 81
 
82  
-    Registration.prototype.withOptions = function(options){
83  
-        this.options = options;
84  
-        return this;
85  
-    };
86 82
 
87 83
     var hasDependencies = function(registration) {
88 84
         return !(registration.type.dependencies === undefined || registration.type.dependencies.length === 0);
@@ -124,19 +120,6 @@
124 120
         return str.trim().toLowerCase();
125 121
     }
126 122
 
127  
-    var deepExtend = function(destination, source) {
128  
-        for (var property in source) {
129  
-            if (typeof source[property] === "object" &&
130  
-                source[property] !== null ) {
131  
-                destination[property] = destination[property] || {};
132  
-                arguments.callee(destination[property], source[property]);
133  
-            } else {
134  
-                destination[property] = source[property];
135  
-            }
136  
-        }
137  
-        return destination;
138  
-    };
139  
-
140 123
     swiftcore.register = function(name, type, singleton){
141 124
         return swiftcore.addRegistration({
142 125
             type: type,
@@ -147,11 +130,10 @@
147 130
 
148 131
     swiftcore.addRegistration = function(registration){
149 132
         var newRegistration = new Registration();
150  
-        //this breaks all our tests
151  
-        //deepExtend(newRegistration, registration);
152 133
         newRegistration.name = registration.name;
153 134
         newRegistration.type = registration.type;
154 135
         newRegistration.singleton = !!registration.singleton;
  136
+
155 137
         store[trimAndLowerCase(newRegistration.name)] = newRegistration;
156 138
         return newRegistration
157 139
     };
3  buildscripts/build_on_windows.cmd
... ...
@@ -1 +1,2 @@
1  
-node.exe build.js
  1
+node.exe build.js
  2
+uglifyjs -o ../build/swiftcore.min.js ../build/swiftcore.js

0 notes on commit d148d3c

Please sign in to comment.
Something went wrong with that request. Please try again.