Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backbone-xhr-events

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-xhr-events

Backbone plugin giving you full featured XHR observer capabilities

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
270
increased by13400%
Maintainers
1
Weekly downloads
 
Created
Source

backbone-xhr-events

Do more than what the default Backbone Model/Collection request event does for you. The primary benefits are

  • Provide robust lifecycle events (before-send, after-send, success, error, complete)
  • Emit type specific XHR events to allow for focused binding
  • Give ability to see if a model currently has any pending XHR activity
  • Provide a global event bus to bind to all Model/Collection XHR activity
  • Allow requests to be intercepted to, for example, return cached content
  • Add ability to intercept and override response data before it is returned to the Model/Collection
  • Provide event forwarding capabilities so other objects can simulate XHR activity to match another Model/Collection
  • Make all event names and additional attributes overrideable to meet the needs of your particular project
  • Give external entities a way to observe ajax activity on your Collections and Models

View the installation and API docs for a better docs experience

Keywords

FAQs

Package last updated on 09 May 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc