Skip to content

Instantly share code, notes, and snippets.

@sandalsoft
Created June 12, 2014 01:44
Show Gist options
  • Save sandalsoft/6a8260855053ed327a90 to your computer and use it in GitHub Desktop.
Save sandalsoft/6a8260855053ed327a90 to your computer and use it in GitHub Desktop.
define("options-ember/controllers/ticker",
["ember","exports"],
function(__dependency1__, __exports__) {
"use strict";
var Ember = __dependency1__.Ember;
var TickerController = Ember.ObjectController.extend({
needs: "application",
ticker_symbol: Ember.computed.alias('controllers.application.ticker_id'),
expirys: Ember.computed.mapBy('model.options', 'expiry'),
expiryList: Ember.computed.uniq('expirys'),
actions: {
filterExpiry: function(expiry) {
this.set('filteredByExpiryOptions', this.get('model.options').filterBy('expiry', expiry));
this.set('selectedExpiryDate', expiry);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment