Created
June 12, 2014 01:44
-
-
Save sandalsoft/6a8260855053ed327a90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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