Skip to content

Instantly share code, notes, and snippets.

@hexsprite
Created April 5, 2010 16:44
Show Gist options
  • Select an option

  • Save hexsprite/356565 to your computer and use it in GitHub Desktop.

Select an option

Save hexsprite/356565 to your computer and use it in GitHub Desktop.
Ups.planController = SC.TreeController.create(
SC.CollectionViewDelegate,
/** @scope Ups.planController.prototype */ {
content: null,
treeItemChildrenKey: 'actions',
treeItemIsGrouped: YES,
collectionViewShouldBeginDrag: function(view) {
alert("HELLO!");
return NO;
},
collectionViewShouldDeleteIndexes: function(view, indexes) {
alert(view);
alert(indexes);
return null;
}
}) ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment