layer.ignoreEvents < boolean>
Enable or disable any user events added to layers. When disabled, no user events on the layer will be emitted. The default value for this is true. Framer automatically disables it when you add an event listener.
译:启用或禁用任何添加到图层的用户事件。当禁用时,该层上没有用户事件将被发射。这是真实的默认值。成帧器自动禁用它当你添加一个事件监听器。
layerA = new Layer
layerA.on Events.Click, ->
print "Click!"
# Now it won't respond to a click
layerA.ignoreEvents = true
# Now it will
layerA.ignoreEvents = false