Skip to content

Instantly share code, notes, and snippets.

@tritchey
Created May 26, 2011 19:47
Show Gist options
  • Save tritchey/993910 to your computer and use it in GitHub Desktop.
Save tritchey/993910 to your computer and use it in GitHub Desktop.
dns controllers
enterState: function() {
...
var _dnsConfigs = ScaleModel.store.find(ScaleModel.DNSConfig);
ScaleUI.dnsConfigsController.set('content', _dnsConfigs);
}
ScaleUI.dnsConfigsController = SC.ArrayController.create({
}) ;
ScaleUI.dnsConfigController = SC.ObjectController.create({
contentBinding: 'ScaleUI.dnsConfigsController.firstObject',
dnsServersController: SC.ArrayController.create({
contentBinding: 'ScaleUI.dnsConfigController*content.dnsServers'
}),
searchDomainsController: SC.ArrayController.create({
contentBinding: 'ScaleUI.dnsConfigController*content.searchDomains'
}),
}) ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment