-
-
Save endash/6845 to your computer and use it in GitHub Desktop.
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
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