Remove some needless calls.
In the svg and canvas object classes, the sceneObject object was
needlessly being called.  Since all features are children of scene
objects, this isn't necessary to call again.
MODIFY
CHANGELOG.md
CHANGELOG.md
# Change Log
+## Unreleased
+
+### Bug Fixes
+- Removed extra calls to sceneObject constructors (#1039)
+
## Version 0.19.7
### Features

MODIFY
src/canvas/object.js
src/canvas/object.js
-var inherit = require('../inherit');
-var sceneObject = require('../sceneObject');
-
/**
* Canvas specific subclass of object which rerenders when the object is drawn.
* @class
@@ -19,7 +16,6 @@ var canvas_object = function (arg) {
if (!(this instanceof object)) {
return new canvas_object(arg);
}
- sceneObject.call(this);
var m_this = this,
s_draw = this.draw,
@@ -81,5 +77,4 @@ var canvas_object = function (arg) {
return this;
};
-inherit(canvas_object, sceneObject);
module.exports = canvas_object;

MODIFY
src/svg/object.js
src/svg/object.js
-var inherit = require('../inherit');
-var sceneObject = require('../sceneObject');
-
/**
* SVG specific subclass of object which adds an id property for d3 selections
* on groups of objects by class id.
@@ -22,7 +19,6 @@ var svg_object = function (arg) {
if (!(this instanceof object)) {
return new svg_object(arg);
}
- sceneObject.call(this);
var m_id = 'svg-' + uniqueID(),
s_exit = this._exit,
@@ -66,5 +62,4 @@ var svg_object = function (arg) {
return this;
};
-inherit(svg_object, sceneObject);
module.exports = svg_object;

Remove some needless calls.

In the svg and canvas object classes, the sceneObject object was
needlessly being called.  Since all features are children of scene
objects, this isn't necessary to call again.