Skip to content

Instantly share code, notes, and snippets.

@mg
Last active August 29, 2015 14:00
Show Gist options
  • Save mg/ea6ddaa52baf0825b1e7 to your computer and use it in GitHub Desktop.
Save mg/ea6ddaa52baf0825b1e7 to your computer and use it in GitHub Desktop.
famous-view
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