Sha256: fcb78eaff9fd89fc23ae47909f3dd67bf54cfaa1be0df56e380d63c7ea0b7fa1
Contents?: true
Size: 381 Bytes
Versions: 33
Compression:
Stored size: 381 Bytes
Contents
function Man(options) { var luck = options.luck; this.decrement_luck = function(delta) { luck = Math.max(0, luck - delta); }; this.luck = function() { return luck; }; this.render = function() { return $('<ul class="man"></ul>') .append('<li class="hair"></li>') .click(function() { $(this).children('.hair').remove(); }); }; }
Version data entries
33 entries across 33 versions & 7 rubygems