Simpler loading
@@ -13,20 +13,14 @@
<script type='text/javascript' src='support/amber.js'></script>
<script type='text/javascript' src='support/requirejs/require.min.js'></script>
<script type='text/javascript'>
- require.config({
- config: {
- 'amber_vm/smalltalk': {
- defaultNamespace: 'amber_core'
- }
- });
require(
- ["amber_vm/smalltalk", "amber_set/full-devel-helios"],
+ ["amber/helios"],
function (smalltalk) {
window.onbeforeunload = function() {
return 'Do you want to close Amber? All uncommitted changes will be lost.';
};
+ smalltalk.defaultAMDNamespace = "amber_core";
smalltalk.initialize();
}
);
@@ -11,16 +11,10 @@
<body>
- ["amber_vm/smalltalk", "amber_set/full-devel"],
+ ["amber/devel"],
smalltalk.Browser._open()
@@ -19,7 +19,7 @@ require = function (require) {
var config = {
baseUrl: home,
paths: {
- 'amber_set': '.',
+ 'amber': '.',
'amber_vm': '.',
'amber_css': '../css',
'amber_core': '../js',
@@ -0,0 +1,12 @@
+define([
+ 'amber_vm/smalltalk',
+ 'amber_core/Kernel-Objects',
+ 'amber_core/Kernel-Classes',
+ 'amber_core/Kernel-Methods',
+ 'amber_core/Kernel-Collections',
+ 'amber_core/Kernel-Infrastructure',
+ 'amber_core/Kernel-Exceptions',
+ 'amber_core/Kernel-Transcript',
+ 'amber_core/Kernel-Announcements',
+ 'amber_core/Canvas'
+], function (smalltalk) { return smalltalk; });
@@ -1,4 +1,5 @@
define([
'jquery',
'jquery-ui',
'jQuery/jquery.textarea',
@@ -34,4 +35,4 @@ define([
'amber_core/Benchfib',
'amber_core/Kernel-Tests',
'amber_core/SUnit-Tests'
-], {});
@@ -52,4 +53,4 @@ define([
'amber_core/Helios-References',
'amber_core/Helios-Announcements',
'amber_core/Helios-Workspace-Tests'
@@ -1,10 +1,10 @@
define("amber_vm/smalltalk", ["require", "module", "./boot"], function (require, module, boot) {
var smalltalk = boot.smalltalk;
smalltalk.amdRequire = require;
- var config = module.config && module.config();
- if (config) {
- smalltalk.defaultAMDNamespace = config.defaultNamespace;
+// var config = module.config && module.config();
+// if (config) {
+// smalltalk.defaultAMDNamespace = config.defaultNamespace;
+// }
return smalltalk;
});