Skip to content

Instantly share code, notes, and snippets.

View QuantumKing's full-sized avatar
🔥
waiting in the fire

Eric Webster QuantumKing

🔥
waiting in the fire
  • San Francisco, CA
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
initSortable: function() {
var refreshed = false;
var _this = this;
this.$().sortable({
axis: 'y',
update: function(event, ui) {
import Ember from 'ember';
export default Ember.Component.extend({
contr: Ember.computed.alias('targetObject'),
word: Ember.computed.alias('contr.word'),
words: ['hello', 'world'],
click: function() {
var i = Math.floor((Math.random() * 2));
var word = this.words[i];
this.set('word', word);