1.0.2 • Published 9 years ago

freeze-view v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

FreezeView

holds all the style informations in a given point in time (and allows to reset them)

Installation

	npm install freeze-view

Usage

	var freeze = require("freeze-view");

Initializing the object looks like this:

	var view = new freeze();
	
	// now the **view** object holds all the style information 

If you want to reset the view to its original state, you just evoke

	view.set();

If you want to read in a modified view (ater having added a dom element for example), you evoke:

	view.get();

Since freeze is an object, you can have multiple instances representing the state of the view in a given moment in time

Non npm usage

If you want to use freeze-view in a non-ppm environment, you can embed the library in your html-file as well:

 	<script src="FreezeView.js"></script>