compatibility for new kineticjs version