backbone.cord.svg

1.0.0 • Public • Published

backbone.cord.svg

Plugin for backbone.cord providing support for creation of svg elements

The _svg method is added to Cord and the Cord.View prototype. It is not passed into the el() method but below is an easy way to create a bound shortcut inside the el() method.

var svg = this._svg.bind(this);
svg('rect', args...);

Backbone.Cord.View.prototype._icon = Backbone.Cord._icon = function() { // TODO return this._svg('svg', this._svg('use')); };

/backbone.cord.svg/

    Package Sidebar

    Install

    npm i backbone.cord.svg

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • mvx24