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

Comments

Projects
None yet
2 participants
@leggetter
Contributor

leggetter commented Sep 27, 2013

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.

@andyberry88 andyberry88 removed the 5 - Done label Jun 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment