mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
change the outlier inherits syntax
This commit is contained in:
parent
40c6ba2861
commit
0e16f856fd
6 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@ define(function (require) {
|
|||
return function AppStateProvider(Private) {
|
||||
var State = Private(require('components/state_management/state'));
|
||||
|
||||
_.inherits(AppState, State);
|
||||
_(AppState).inherits(State);
|
||||
function AppState(defaults) {
|
||||
AppState.Super.call(this, '_a', defaults);
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ define(function (require) {
|
|||
module.service('globalState', function (Private, $rootScope, $location) {
|
||||
var State = Private(require('components/state_management/state'));
|
||||
|
||||
_.inherits(GlobalState, State);
|
||||
_(GlobalState).inherits(State);
|
||||
function GlobalState(defaults) {
|
||||
GlobalState.Super.call(this, '_g', defaults);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ define(function (require) {
|
|||
return function StateProvider(Private, $rootScope, $location) {
|
||||
var Events = Private(require('factories/events'));
|
||||
|
||||
_.inherits(State, Events);
|
||||
_(State).inherits(Events);
|
||||
function State(urlParam, defaults) {
|
||||
State.Super.call(this);
|
||||
this._defaults = defaults || {};
|
||||
|
|
|
@ -5,7 +5,7 @@ define(function (require) {
|
|||
var BaseObject = Private(require('factories/base_object'));
|
||||
var notify = new Notifier({ location: 'EventEmitter' });
|
||||
|
||||
_.inherits(Events, BaseObject);
|
||||
_(Events).inherits(BaseObject);
|
||||
function Events() {
|
||||
Events.Super.call(this);
|
||||
this._listeners = {};
|
||||
|
|
|
@ -6,7 +6,7 @@ define(function (require) {
|
|||
var stub = sinon.spy(body || function () {
|
||||
stub.Super && stub.Super.call(this);
|
||||
});
|
||||
if (parent) _.inherits(stub, parent);
|
||||
if (parent) _(stub).inherits(parent);
|
||||
return stub;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ define(function (require) {
|
|||
});
|
||||
|
||||
it('should work with inherited objects', function (done) {
|
||||
_.inherits(MyEventedObject, Events);
|
||||
_(MyEventedObject).inherits(Events);
|
||||
function MyEventedObject() {
|
||||
MyEventedObject.Super.call(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue