Skip to content

Instantly share code, notes, and snippets.

@santhotech
Created November 26, 2010 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santhotech/716587 to your computer and use it in GitHub Desktop.
Save santhotech/716587 to your computer and use it in GitHub Desktop.
contentBinding: SC.Binding.single('Machines.devicesController.selection'),
prop: 10,
///*
contentDidChange: function() {
console.log("called first");
var sum= sum+this.get('prop');
console.log(sum);
var content = this.get('content');
var devid = this.content.get('id');
var lad = Machines.mainPage.mainPane.middleView.bottomRightView.custView.get('layerId');
if (!content) return ;
//var imageQuery = SC.Query.remote(ImageSearch.GoogleImage, {query: this.get('deviceId')});
Machines.CYCLES_QUERY = SC.Query.local(Machines.Utils, {
query: this.content.get('id'),
});
var cycles = Machines.store.find(Machines.CYCLES_QUERY);
console.log('called');
Machines.devicesController.renderChart(lad,devid);
}.observes('content'),
//*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment