
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
backbone-bind
Advanced tools
Super simple 2way binding for Backbone views.
This plugin requires browserify, but feel free to open PR or issues if you want to use the plugin with something else.
npm i -S backbone-bind
var binding = require('backbone-bind');
var Backbone = require('backbone')
var model = require('./model');
// bind typical input view with this.model
var View = Backbone.View.extend({
tagName: 'input',
bind: binding
render: function() {
this.bind('title');
return this;
}
});
var view = new View({
model: model
});
$('body').append(view);
You can use either bind(options)
or bind(field, options)
, as you prefer.
options.$el
Default value: this.$el
jQuery element that you will bind.
options.field
Name of model property that you will bind.
options.attr
Default value: val
Represents input value. (checked
, val
, innerText
, etc).
options.direction
Default value: <>
Represents binding direction (model <-> element
). Only <
and >
symbols
make sence, but model <-> element
is better to understand.
options.events
Default value: keydown
List of bound events like change
, keypress
, keydown
...
options.model
Default value: this.model
Backbone model that you will bind.
MIT
FAQs
Super simple 2-way binding for Backbone Views
The npm package backbone-bind receives a total of 5 weekly downloads. As such, backbone-bind popularity was classified as not popular.
We found that backbone-bind demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.