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

conbo-changehistory

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conbo-changehistory

Object change history state manager for ConboJS

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

ChangeHistory for ConboJS 4

The ChangeHistory class is a simple object state history manager for ConboJS that enables you to navigate back and forward through the history of every property change made to any object that extends the EventDispatcher class, including Hash, Application and View, effectively making it possible to return to any of an object's past states.

The ChangeHistory class can be imported as an AMD, CommonJS or global module.

API

The ChangeHistory class is modelled on the built-in browser History class, offering the following properties and methods:

  • back() moves back 1 step into history
  • forward() moved forward 1 step in hisyory
  • go(n) moves n steps backwards or forwards in history
  • currentIndex is the current place in history
  • beforeFirst indicates whether you are at a point in history before any changes were made
  • atLast indicates that you are at the end of history

Getting started

Initialising ChangeHistory for an object couldn't be easier:

var history = new ChangeHistory(obj);

Keywords

FAQs

Package last updated on 28 Sep 2017

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