Skip to content

Instantly share code, notes, and snippets.

@endash
Forked from anonymous/gist:6844
Created August 22, 2008 19:48
Show Gist options
  • Save endash/6845 to your computer and use it in GitHub Desktop.
Save endash/6845 to your computer and use it in GitHub Desktop.
require('core');
// objects are created by passing an object literal to the create() method
//
// Ofapisurfer.mainController = SC.Object.create({}) ;
// is the same as
// var obj = {}
// Ofapisurfer.mainController = SC.object.create(obj);
//
// You use the object literal to pass properties and methods to your object:
Ofapisurfer.mainController = SC.Object.create({
init: function() {
sc_super()
var c = new Ofapisurfer.User();
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment