cocos2d/cocos2d-x — pull request #1744 by dualface (2012-12-10 06:01:41+00:00)
Title: [scripting] add CCNode::scheduleUpdateScriptHandlerWithPriority()

add CCNode::scheduleUpdate() script support.

example:

local function onEnterFrame(dt)
print(dt)
end

node:scheduleUpdateScriptHandlerWithPriority(onEnterFrame, 0)

advantage:

- CCScheduler::scheduleScriptFunc() registered global event, when the exit of the scene must manually clean up. CCNode::scheduleUpdateScriptHandlerWithPriority() registered local event, will automatically clean up the node remove from parent.
- better performance.