Permalink
Browse files

Remove deprecated Ember.K (#1166)

1 parent 31c002b commit b67d965c7893aaae5452c804f414911a247cd45d @cibernox cibernox committed with Turbo87 Jan 4, 2017
@@ -2,9 +2,20 @@ import Ember from 'ember';
import BaseStore from './base';
import objectsAreEqual from '../utils/objects-are-equal';
-const { RSVP, computed, inject: { service }, run: { next, debounce, scheduleOnce }, isEmpty, typeOf, testing, isPresent, K, A, getOwner } = Ember;
-
-const persistingProperty = function(beforeSet = K) {
+const {
+ RSVP,
+ computed,
+ inject: { service },
+ run: { next, debounce, scheduleOnce },
+ isEmpty,
+ typeOf,
+ testing,
+ isPresent,
+ A,
+ getOwner
+} = Ember;
+
+const persistingProperty = function(beforeSet = function() {}) {
return computed({
get(key) {
return this.get(`_${key}`);
@@ -9,7 +9,10 @@ import Authenticator from 'ember-simple-auth/authenticators/base';
import createWithContainer from '../helpers/create-with-container';
-const { RSVP, K, run: { next } } = Ember;
+const {
+ RSVP,
+ run: { next }
+} = Ember;
describe('InternalSession', () => {
let session;
@@ -472,7 +475,7 @@ describe('InternalSession', () => {
});
});
- itHandlesAuthenticatorEvents(K);
+ itHandlesAuthenticatorEvents(function() {});
});
describe('when the store rejects persistance', () => {
@@ -3,10 +3,12 @@ import Ember from 'ember';
import { describe, beforeEach, it } from 'mocha';
import { expect } from 'chai';
-const { run: { next }, K } = Ember;
+const {
+ run: { next }
+} = Ember;
export default function(options) {
- let syncExternalChanges = options.syncExternalChanges || K;
+ let syncExternalChanges = options.syncExternalChanges || function() {};
let store;
beforeEach(() => {

0 comments on commit b67d965

Please sign in to comment.