Update CCScale9Sprite.js

add a param ctx for visit function