Created
December 2, 2009 07:52
-
-
Save lsiden/247030 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
EccapCalc.ledgerController = function(view, ledger_id) { | |
/** @class | |
@extends SC.ArrayController | |
*/ | |
return SC.ArrayController.create( | |
SC.CollectionViewDelegate, | |
/** @scope EccapCalc.ledgerController.prototype */ { | |
verticalOffset: 0, | |
ledger: function() { | |
console.log("ledger_id=" + ledger_id); | |
//var l = EccapCalc.store.find(EccapCalc.Ledger, ledger_id).refresh(); | |
var l = EccapCalc.store.find(EccapCalc.Ledger, 'foobar').refresh(); | |
console.log("id=" + l.get('id') + ", status=" + l.status()); | |
return EccapCalc.store.find(EccapCalc.Ledger, ledger_id); | |
}.property().cacheable(), | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment