Removed a crash bug when the lambdas are absent

This commit is contained in:
2015-07-17 19:02:58 +10:00
parent 8b1a9aee91
commit 0c11e0a98b
7 changed files with 21 additions and 16 deletions
+3 -1
View File
@@ -6,7 +6,9 @@ pager = ...
---[[
--BUG: RegionPagerLua fails without these
--DOCS: These lambdas should return true or false, depending on if the operation succeeded or not
--DOCS: No return value given is recognized as a failure
--DOCS: OnCreate() and OnUnload() return values are currently ignored
region_pager.SetOnLoad(pager, function(r)
print("Calling SetOnLoad's lambda")
end)