Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created June 22, 2010 23:20
Show Gist options
  • Save joegaudet/449255 to your computer and use it in GitHub Desktop.
Save joegaudet/449255 to your computer and use it in GitHub Desktop.
var Foo = SC.Object.extend({
values: []
});
var bar1 = Foo.create();
bar1.get('values').push("One");
bar1.get('values').push("Two");
bar1.get('values').push("Three");
console.log(bar1.get('values'));
// output : ["One", "Two", "Three"]
var bar2 = Foo.create();
console.log(bar2.get('values'));
// output : ["One", "Two", "Three"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment