Remove usless function binding

This commit is contained in:
Denis Ciccale 2015-12-02 12:42:08 +01:00
parent 79eb9c9e2b
commit 5b38c069c6

View File

@ -36,17 +36,6 @@ function Strapi() {
// Mixin support for `Strapi.prototype.after()`. // Mixin support for `Strapi.prototype.after()`.
mixinAfter(this); mixinAfter(this);
// Bind `this` context for all `Strapi.prototype.*` methods.
this.load = this.load.bind(this);
this.start = this.start.bind(this);
this.stop = this.stop.bind(this);
this.restart = this.restart.bind(this);
this.initialize = this.initialize.bind(this);
this.exposeGlobals = this.exposeGlobals.bind(this);
this.runBootstrap = this.runBootstrap.bind(this);
this.isLocalStrapiValid = this.isLocalStrapiValid.bind(this);
this.isStrapiAppSync = this.isStrapiAppSync.bind(this);
// Expose `koa`. // Expose `koa`.
this.server = require('koa'); this.server = require('koa');
this.app = require('koa')(); this.app = require('koa')();