1.0.0 • Published 8 years ago

scene-framework v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

Scene

A tiny front-end framework designed with ❤️

Usage

const Scene = require('scene-framework');

Scene.define('splash', function () {
  this.find('button').click(function () {
    Scene.go('game');
  });
}, function () {
  // Invoked when leaving the "splash" scene.
  // Note that you don't need to cleanup the
  // listeners to the button element since
  // Scene will do that for you.
});

Scene.define('game', function () {
  alert('Welcome to the game!');
  Scene.go('splash');
});
1.0.0

8 years ago