Sha256: 1c588992995708f9a2e0646d3d245115cd31cf4f98d6b78c7f15c1d2425f67f2
Contents?: true
Size: 532 Bytes
Versions: 7
Compression:
Stored size: 532 Bytes
Contents
/* --- script: State.js description: Changes the state of a widget license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - LSD.Action provides: - LSD.Action.State ... */ LSD.Action.State = LSD.Action.build({ enable: function(target, name) { target.addClass(name); }, disable: function(target, name) { target.removeClass(name); }, getState: function(target, name, state) { return !((state !== true && state !== false) ? target.hasClass(name) : state); } });
Version data entries
7 entries across 7 versions & 1 rubygems