Skip to content

Instantly share code, notes, and snippets.

@rebo
Created March 29, 2010 16:38
Show Gist options
  • Save rebo/348068 to your computer and use it in GitHub Desktop.
Save rebo/348068 to your computer and use it in GitHub Desktop.
// setting up the binding for my table here, this works ok:
contentBinding: 'Training.operativesController.arrangedObjects',
selectionBinding: 'Training.operativesController.selection',
// then trying to access the selection in the console gets this:
Training.operativesController.selection.get('firstObject')
TypeError: Result of expression 'Training.operativesController.selection.get' [undefined] is not a function.
// Just the selection outputs this:
Training.operativesController.selection
function (key, value) {
var old = this._scsel_selection,
oldlen = old ? old.get('length') : 0,
content, empty, len;
// whenever we have to recompute select.........
....
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment