Permalink
Browse files

Merge pull request #617 from emberjs/remove-ember-k

Remove Ember.K.
  • Loading branch information...
2 parents ee51352 + 2a5b9ef commit e28c9185c3a8c1e99705a9791086c689a1b91c1b @teddyzeenny teddyzeenny committed on GitHub Nov 20, 2016
@@ -1,5 +1,7 @@
import Ember from "ember";
-const { computed, String: { htmlSafe }, K } = Ember;
+
+const { computed, String: { htmlSafe } } = Ember;
+
export default Ember.Component.extend({
classNames: ['drag-handle'],
classNameBindings: ['isLeft:drag-handle--left', 'isRight:drag-handle--right', 'faded:drag-handle--faded'],
@@ -43,9 +45,8 @@ export default Ember.Component.extend({
*
* @property on-drag
* @type {Function}
- * @default Ember.K
*/
- 'on-drag': K,
+ 'on-drag'() {},
startDragging() {
let $container = this.$().parent();
@@ -7,7 +7,7 @@
* to events on `rowEvents`.
*/
import Ember from 'ember';
-const { Mixin, assert, isNone, computed: { readOnly }, K } = Ember;
+const { Mixin, assert, isNone, computed: { readOnly } } = Ember;
export default Mixin.create({
/**
@@ -25,27 +25,24 @@ export default Mixin.create({
*
* @property on-click
* @type {Function}
- * @default Ember.K
*/
- 'on-click': K,
+ 'on-click'() {},
/**
* Action to trigger when a row mouseenter event is triggered.
*
* @property on-mouseenter
* @type {Function}
- * @default Ember.K
*/
- 'on-mouseenter': K,
+ 'on-mouseenter'() {},
/**
* Action to trigger when a row mouseleave event is triggered.
*
* @property on-mouseleave
* @type {Function}
- * @default Ember.K
*/
- 'on-mouseleave': K,
+ 'on-mouseleave'() {},
/**
* An alias to the list's `rowEvents` property.
@@ -9,7 +9,7 @@ let fakeRSVP;
function stubRSVP() {
fakeRSVP = Ember.Object.extend(Ember.Evented, {
- configure: Ember.K
+ configure() {}
}).create();
}
@@ -37,9 +37,9 @@ module("Promise Debug", {
EmberDebug.get('promiseDebug').reopen({
delay: 5,
session: {
- getItem: Ember.K,
- setItem: Ember.K,
- removeItem: Ember.K
+ getItem() {},
+ setItem() {},
+ removeItem() {}
}
});
port = EmberDebug.port;

0 comments on commit e28c918

Please sign in to comment.