Sha256: d420cae276c73b3d95553a0747893ab6f747adf96294e829606d833efe6e1634
Contents?: true
Size: 697 Bytes
Versions: 7
Compression:
Stored size: 697 Bytes
Contents
/* --- script: List.js description: Shows or hides things license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - LSD.Action provides: - LSD.Action.List - LSD.Action.Next - LSD.Action.Previous ... */ LSD.Action.List = LSD.Action.build({ enable: function(target) { var widget = LSD.Module.DOM.find(target, true); if (widget && widget.pseudos.list) widget.next(); }, disable: function(target) { var widget = LSD.Module.DOM.find(target, true); if (widget && widget.pseudos.list) widget.previous(); }, getState: function(target, state) { return state == 'true'; }, enabler: 'next', disabler: 'previous' });
Version data entries
7 entries across 7 versions & 1 rubygems