[seed] Some comments on the new importer



commit a13762d1721d6aeea36df0d56ecc8634fb168a30
Author: Robert Carr <racarr mireia (none)>
Date:   Mon Apr 13 13:54:30 2009 -0400

    Some comments on the new importer
---
 libseed/seed-importer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libseed/seed-importer.c b/libseed/seed-importer.c
index 9be66a9..885d2e6 100644
--- a/libseed/seed-importer.c
+++ b/libseed/seed-importer.c
@@ -510,6 +510,8 @@ seed_importer_handle_file (JSContextRef ctx,
   
   nctx = JSGlobalContextCreateInGroup (context_group, 0);
   global = JSContextGetGlobalObject (nctx);
+  // Set some objects that need to be available globally.
+  // Needs to be elsewhere...so that there can be some consistency
   seed_object_set_property (nctx, global, "imports", importer);
   seed_object_set_property (nctx, global, "GType", seed_gtype_constructor);
   seed_object_set_property (nctx, global, "Seed", seed_obj_ref);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]