Last active
August 29, 2015 14:00
-
-
Save mg/ea6ddaa52baf0825b1e7 to your computer and use it in GitHub Desktop.
famous-view
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
define(function(require, exports, module) { | |
'use strict'; | |
var View = require('famous/core/View'); | |
var Surface = require('famous/core/Surface'); | |
function TheView() { | |
View.apply(this, arguments); | |
var surface = new Surface({ | |
content: 'Content', | |
classes: ['classes'], | |
properties: { | |
textAlign: 'center' | |
} | |
}); | |
this.add(surface); | |
}; | |
TheView.prototype = Object.create(View.prototype); | |
TheView.prototype.constructor = TheView; | |
module.exports= TheView; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment