Browse Source

move amber_vm files to deprecation folder

Herbert Vojčík 10 years ago
parent
commit
2d9a4adfa7

+ 0 - 20
support/_st.js

@@ -1,20 +0,0 @@
-// !!! THIS FILE IS DEPRECATED !!!
-// Use as-receiver.js instead.
-
-/**
- * _st is a function used all over the compiled amber code that
- * takes any value (JavaScript or Smalltalk)
- * and returns a proper Amber Smalltalk receiver.
- *
- * null or undefined -> nil,
- * plain JS object -> wrapped JS object,
- * otherwise unchanged
- */
-
-define("amber_vm/_st", ["./globals", "./nil"], function (globals, nil) {
-    return function (o) {
-        if (o == null) { return nil; }
-        if (o.klass) { return o; }
-        return globals.JSObjectProxy._on_(o);
-    };
-});

+ 2 - 2
support/amber.js

@@ -77,8 +77,8 @@ require = function (require) {
     var config = {
         paths: {
             'amber': amber_home + '/support',
-            'amber_vm': amber_home + '/support',
-            'amber_vm/_st': amber_home + '/support/as-receiver',
+            'amber_vm': amber_home + '/support/deprecated-vm-files',
+            'amber_vm/_st': amber_home + '/support/deprecated-vm-files/as-receiver',
             'amber_css': amber_home + '/css',
             'amber_lib': library_home,
             'amber_core': amber_home + '/src',

+ 1 - 1
support/boot.js

@@ -38,7 +38,7 @@
  ==================================================================== */
 
 
-define("amber_vm/boot", [ 'require', './browser-compatibility' ], function (require) {
+define("amber/boot", [ 'require', './browser-compatibility' ], function (require) {
 
 	/* Reconfigurable micro composition system, https://github.com/amber-smalltalk/brikz */
 

+ 1 - 1
support/browser-compatibility.js

@@ -1,4 +1,4 @@
-define("amber_vm/browser-compatibility", [
+define([
     './ensure-console',
     'amber_lib/es5-shim/es5-shim.min',
     'amber_lib/es5-shim/es5-sham.min'

+ 0 - 0
support/as-receiver.js → support/deprecated-vm-files/as-receiver.js


+ 3 - 0
support/deprecated-vm-files/boot.js

@@ -0,0 +1,3 @@
+define("amber_vm/boot", ["amber/boot"], function (boot) {
+    return boot;
+});

+ 0 - 0
support/globals.js → support/deprecated-vm-files/globals.js


+ 0 - 0
support/nil.js → support/deprecated-vm-files/nil.js


+ 0 - 0
support/smalltalk.js → support/deprecated-vm-files/smalltalk.js