Skip to content

Commit

Permalink
path is the only object that inherits from Object but does not call s…
Browse files Browse the repository at this point in the history
…uper. it should also call super for consistancey and to allow overriding of the object initialize prototype (#4005)
  • Loading branch information
stefanhayden authored and asturur committed Jun 14, 2017
1 parent d7a0d33 commit c852a52
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/shapes/path.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@
*/
initialize: function(path, options) {
options = options || { };

if (options) {
this.setOptions(options);
}
this.callSuper('initialize', options);

if (!path) {
path = [];
Expand Down

0 comments on commit c852a52

Please sign in to comment.