mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Fixed bug with callback procs in class PictureEx
This commit is contained in:
@@ -117,7 +117,7 @@ class PictureEx
|
|||||||
end
|
end
|
||||||
|
|
||||||
def callback(cb)
|
def callback(cb)
|
||||||
if cb.is_a?(Proc); proc.call(self)
|
if cb.is_a?(Proc); cb.call(self)
|
||||||
elsif cb.is_a?(Array); cb[0].method(cb[1]).call(self)
|
elsif cb.is_a?(Array); cb[0].method(cb[1]).call(self)
|
||||||
elsif cb.is_a?(Method); cb.call(self)
|
elsif cb.is_a?(Method); cb.call(self)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user