Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AquaCoSy.productDisplayController = SC.ObjectController.create(
- /** @scope AquaCoSy.productDisplayController.prototype */ {
- offerSelectedProduct: null,
- offerSelectedProductBinding: 'AquaCoSy.offerListController.selectedProduct',
- basketSelectedProduct: null,
- basketSelectedProductBinding: 'AquaCoSy.basketListController.selectedProduct',
- selectedProductDidChange: function() {
- console.log('selectedProduct did Change');
- console.log(this.get('selectedProduct'));
- }.observes('selectedProduct'),
- selectedProduct: function() {
- return SC.empty(this.get('basketSelectedProduct')) ? this.get('offerSelectedProduct') : this.get('basketSelectedProduct');
- }.property('offerSelectedProduct', 'basketSelectedProduct').cacheable(),
- isVisible: function() {
- return !(SC.empty(this.get('selectedProduct')));
- }.property('selectedProduct').cacheable(),
- ...
Add Comment
Please, Sign In to add comment