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
screw_server-0.1.12 assets/vendor/screw-unit/example/models/man.js
screw_server-0.1.11 assets/vendor/screw-unit/example/models/man.js
screw_server-0.1.10 assets/vendor/screw-unit/example/models/man.js
screw_server-0.1.9 assets/vendor/screw-unit/example/models/man.js
screw_server-0.1.8 assets/vendor/screw-unit/example/models/man.js
honkster-screw-unit-server-0.6.3 core/example/models/man.js
honkster-screw-unit-server-0.6.2 core/example/models/man.js
honkster-screw-unit-server-0.6.1 core/example/models/man.js
btakita-screw-unit-server-0.6.0 core/example/models/man.js
screw-unit-0.5.1 core/example/models/man.js
screw-unit-0.3.3 core/example/models/man.js
screw-unit-0.5.2 core/example/models/man.js
screw-unit-server-0.5.3 core/example/models/man.js