Skip to content

Commit

Permalink
fixed #402
Browse files Browse the repository at this point in the history
  • Loading branch information
hugohuang1111 committed Feb 3, 2015
1 parent 8f074a8 commit 127ecc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quick/framework/cc/components/behavior/EventProtocol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ end
function EventProtocol:hasEventListener(eventName)
eventName = string.upper(tostring(eventName))
local t = self.listeners_[eventName]
if not t then
return false
end
for _, __ in pairs(t) do
return true
end
Expand Down

0 comments on commit 127ecc5

Please sign in to comment.