Skip to content

Instantly share code, notes, and snippets.

View ianbale's full-sized avatar

Ian Bale ianbale

View GitHub Profile
@ianbale
ianbale / application.controller.js
Last active October 22, 2015 10:00
No Memory Leak
import Ember from 'ember';
export default Ember.Controller.extend({
data : [],
scrollTimer : null,
init : function()
{
var data = this.get("data");
@ianbale
ianbale / application.controller.js
Last active October 22, 2015 01:38
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
data : [],
scrollTimer : null,
init : function()
{
var data = this.get("data");
import Ember from 'ember';
export default Ember.Component.extend({
getlabel : Ember.computed ('item.label',function()
{
var item = this.get("item");
Ember.Logger.log("getlabel",item.label);
return item.label + " " + new Date;