Skip to content

ripplejs/extend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extend

Extend the prototype of the view in a nice way.

component install ripplejs/extend

API

var extend = require('extend');
var ripple = require('ripple');

var View = ripple(template)
  .use(extend);

// Add methods to the prototype
View.extend({
  tick: function(){
    this.set('time', new Date);
  }
});

About

Extend the prototype of the view in a nice way.

Resources

Stars

Watchers

Forks

Packages

No packages published