From 214c4c2b33f4144570baca2d5eb6e2ad16ccdb0d Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 12 Dec 2016 11:14:59 +0100 Subject: [PATCH] Inline the now-useless basicInitialize --- src/object.js | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/object.js b/src/object.js index f0414ec..ded8be5 100644 --- a/src/object.js +++ b/src/object.js @@ -73,19 +73,6 @@ define([], function() { */ my.postInitialize = function() {}; - /** - * Private method handling initialization of new - * instances. Prefer overriding one of `preInitialize`, - * `initialize` or `postInitialize` instead of overriding this - * method. - */ - my.basicInitialize = function() { - var args = Array.prototype.slice.apply(arguments); - my.preInitialize.apply(this, args); - my.initialize.apply(this, args); - my.postInitialize.apply(this, args); - }; - /** * Throws an error because the method should have been overridden. */ @@ -190,7 +177,9 @@ define([], function() { } if (!notFinal) { - my.basicInitialize(spec); + my.preInitialize(spec); + my.initialize(spec); + my.postInitialize(spec); } return instance;