|
@@ -36,9 +36,6 @@
|
|
|
|
|
|
define([ 'ensure-console', 'es5-shim-2.0.2/es5-shim.min', 'es5-shim-2.0.2/es5-sham.min' ], function () {
|
|
|
|
|
|
-/* Previouslu global Smalltalk objects; now they are local to this module and exported. */
|
|
|
-var global_smalltalk, global_nil, global__st;
|
|
|
-
|
|
|
/* Array extensions */
|
|
|
|
|
|
Array.prototype.addElement = function(el) {
|
|
@@ -95,7 +92,7 @@ inherits(SmalltalkPackageOrganizer, SmalltalkOrganizer);
|
|
|
inherits(SmalltalkClassOrganizer, SmalltalkOrganizer);
|
|
|
|
|
|
|
|
|
-var nil = global_nil = new SmalltalkNil();
|
|
|
+var nil = new SmalltalkNil();
|
|
|
|
|
|
function Smalltalk() {
|
|
|
|
|
@@ -799,7 +796,7 @@ SmalltalkMethodContext.prototype.lookupClass = null;
|
|
|
|
|
|
inherits(SmalltalkMethodContext, SmalltalkObject);
|
|
|
|
|
|
-var smalltalk = global_smalltalk = new Smalltalk();
|
|
|
+var smalltalk = new Smalltalk();
|
|
|
|
|
|
SmalltalkMethodContext.prototype.fill = function(receiver, selector, locals, lookupClass) {
|
|
|
this.receiver = receiver;
|
|
@@ -837,7 +834,7 @@ SmalltalkMethodContext.prototype.method = function() {
|
|
|
* Used in message sends
|
|
|
*/
|
|
|
|
|
|
-global__st = function(o) {
|
|
|
+function _st(o) {
|
|
|
if(o == null) {return nil;}
|
|
|
if(o.klass) {return o;}
|
|
|
return smalltalk.JSObjectProxy._on_(o);
|
|
@@ -884,5 +881,5 @@ smalltalk.wrapClassName("MethodContext", "Kernel-Methods", SmalltalkMethodContex
|
|
|
smalltalk.alias(smalltalk.Array, "OrderedCollection");
|
|
|
smalltalk.alias(smalltalk.Date, "Time");
|
|
|
|
|
|
-return { smalltalk: global_smalltalk, nil: global_nil, _st: global__st };
|
|
|
+return { smalltalk: smalltalk, nil: nil, _st: _st };
|
|
|
});
|