A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ripplejs/extend below:

ripplejs/extend: Extend the prototype of the view in a nice way.

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);
  }
});

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4