Explorar el Código

Allow loading default Amber files from a different location

JohnnyT hace 13 años
padre
commit
2471525898
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      js/amber.js

+ 4 - 0
js/amber.js

@@ -30,6 +30,10 @@ amber = (function() {
 		deploy = spec.deploy || false;
 		debug = spec.debug || false;
 
+    // Allow loading default Amber files from a different location
+    // e.g. http://amber-lang.net/amber/
+    if (spec.home) home = spec.home;
+
 		// Specify a version string to avoid wrong browser caching
 		if (spec.version) {
 			nocache = '?' + spec.version;