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
MyApp.selectedCategoriesController = SC.ArrayController.create({ | |
contentBinding: SC.Binding.oneWay('MyApp.selectedActionController.categories') | |
}); | |
MyApp.selectedCategoryController = SC.ObjectController.create({ | |
contentBinding: SC.Binding.oneWay('MyApp.categoryListView.menu.selectedItem.value') | |
}); | |
MyApp.selectedSubCategoriesController = SC.ArrayController.create({ | |
contentBinding: SC.Binding.oneWay('MyApp.selectedCategoryController.subCategories') |
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
sc_require('data'); | |
SC.mixin(V6Grapher, { | |
// Retrieve graph data from source | |
getGraphingData: function() { | |
return V6Grapher.Data.split("\n"); | |
}, |
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
left: SC.View.extend({ | |
layout: {bottom: 0, left: 0, height: 47, width: 117}, | |
classNames: ['left'], | |
innerHTML: 'Previous', | |
}) |
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
App.Category = SC.Record.extend({ | |
name: SC.Record.attr(String), | |
parent: SC.Record.toOne('App.Category'), | |
lft: SC.Record.attr(Number), | |
rgt: SC.Record.attr(Number), | |
itemType: SC.Record.attr(String), | |
listings: SC.Record.toMany('App.Listing', {inverse: "category"}), | |
//Tree Properties | |
treeItemIsExpanded: NO, |