Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A loopy variable watcher.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
jvw.js
package.json
readme.md

readme.md

JSVariableWatcher

A loopy variable watcher.

Every X (250 by default) ms it will check for modifications to a variable and run the associated function.

I haven't done much testing of it. Your milage may vary.

Usage

var j = new JVW();
j.add('nameOfVariable', function (varName, oldValue, newValue) {
    // do stuff when variable changes.
});

j.remove('nameOfvariable');
Something went wrong with that request. Please try again.