issue #3541 : Move CCDrawingPrimitives.js to core