Diff

core/moduleapi.lua @ 6423:1c78f10f05d0

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Tue, 23 Sep 2014 01:44:16 +0200
parent 6418:ae798314347c
parent 6422:6d4d87a89026
child 6557:8aa967c81cbc
line wrap: on
line diff
--- a/core/moduleapi.lua	Tue Sep 16 17:11:29 2014 -0400
+++ b/core/moduleapi.lua	Tue Sep 23 01:44:16 2014 +0200
@@ -390,7 +390,9 @@
 	return require"core.storagemanager".open(self.host, name or self.name, type);
 end
 
-return function (mm)
+function api.init(mm)
 	modulemanager = mm;
 	return api;
 end
+
+return api;