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

Version Path
pivotal-screw-unit-0.4.0 core/example/models/man.js
pivotal-screw-unit-0.4.1 core/example/models/man.js
pivotal-screw-unit-0.4.2 core/example/models/man.js
pivotal-screw-unit-0.4.3 core/example/models/man.js
pivotal-screw-unit-0.5.0 core/example/models/man.js
pivotal-screw-unit-0.5.1 core/example/models/man.js
pivotal-screw-unit-0.5.2 core/example/models/man.js
pivotal-screw-unit-0.5.3 core/example/models/man.js
pivotal-screw-unit-server-0.5.10 core/example/models/man.js
pivotal-screw-unit-server-0.5.11 core/example/models/man.js
pivotal-screw-unit-server-0.5.12 core/example/models/man.js
pivotal-screw-unit-server-0.5.3 core/example/models/man.js
pivotal-screw-unit-server-0.5.4 core/example/models/man.js
pivotal-screw-unit-server-0.5.5 core/example/models/man.js
pivotal-screw-unit-server-0.5.6 core/example/models/man.js
pivotal-screw-unit-server-0.5.7 core/example/models/man.js
pivotal-screw-unit-server-0.5.8 core/example/models/man.js
pivotal-screw-unit-server-0.5.9 core/example/models/man.js
screw_server-0.1.14 assets/vendor/screw-unit/example/models/man.js
screw_server-0.1.13 assets/vendor/screw-unit/example/models/man.js