Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.js module-style code support #11

Closed
leggetter opened this issue Sep 27, 2013 · 0 comments
Closed

Node.js module-style code support #11

leggetter opened this issue Sep 27, 2013 · 0 comments
Labels
Milestone

Comments

@leggetter
Copy link
Contributor

As we all know, this is a priority.

We want to be able to write code so that the auto-generated classes look as follows:

var br = require( 'br' );

var Property = require( 'br/presenter/Property');
var PresentationModel = require( 'br/presenter/PresentationModel' );

function ExampleClass() {
  this.message = new Property( "Hello World!" );
};
br.extend(ExampleClass, PresentationModel);

ExampleClass.prototype.buttonClicked = function() {
  console.log( 'button clicked' );
};

Relies on #227 and #230.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants