added `amber/helpers`, you can popup Helios conveniently
@@ -33,6 +33,7 @@ require = function (require) {
'amber_lib': home+'/support',
'amber_core': home+'/js',
'amber_core/_source': home+'/st',
+ 'amber_html': home,
'jquery': home+'/support/jQuery/jquery-1.8.2.min',
'jquery-ui': home+'/support/jQuery/jquery-ui-1.8.24.custom.min'
},
@@ -1,5 +1,6 @@
define([
'amber_vm/smalltalk',
+ './helpers',
'amber_core/Kernel-Objects',
'amber_core/Kernel-Classes',
'amber_core/Kernel-Methods',
'jquery',
'jquery-ui',
'amber_lib/jQuery/jquery.textarea',
@@ -0,0 +1,8 @@
+define("amber/helpers", ["amber_vm/smalltalk", "require"], function (smalltalk, require) {
+ return {
+ popupHelios: function () {
+ window.open(require.toUrl('amber_html/helios.html'), "Helios", "menubar=no, status=no, scrollbars=no, menubar=no, width=1000, height=600");
+ },
+ get smalltalk() { return smalltalk; }
+ };
+});