Skip to content

Commit

Permalink
Less warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Johnson committed Aug 3, 2011
1 parent 6c1e726 commit 0e94225
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/stdlib/init.lua
Expand Up @@ -2,11 +2,11 @@ setmetatable(_G, {
__index = function(self, key)
local class = wax.class[key]
if class then self[key] = class end -- cache it for future use
if not class and key:match("^[A-Z][A-Z][A-Z]") then -- looks like they were trying to use an objective-c obj

if not class and key:match("^[A-Z][A-Z][A-Z][^A-Z]") then -- looks like they were trying to use an objective-c obj
print("WARNING: No object named '" .. key .. "' found.")
end

return class
end
})
Expand Down

0 comments on commit 0e94225

Please sign in to comment.