Sha256: 0bf0f4d8f61e3125ea19e25f804b931f7f811d960d11292031eaa8ce2cdcb0bc

Contents?: true

Size: 1.97 KB

Versions: 2

Compression:

Stored size: 1.97 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"rvt.js;FI"
pathname;TI"@/Users/genadi/Development/rvt/lib/assets/javascripts/rvt.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ÝåªTI"length;Ti?I"digest;TI"%d737e49cb15784d2e8a21ae2eb589feb;FI"source;TI"?
;(function(BaseTerminal) {

  // Expose the main RVT namespace.
  var RVT = this.RVT = {};

  // Follow term.js example and expose inherits and EventEmitter.
  var inherits = RVT.inherits = BaseTerminal.inherits;
  var EventEmitter = RVT.EventEmitter = BaseTerminal.EventEmitter;

  var Terminal = RVT.Terminal = function(options) {
    if (typeof options === 'number') {
      return BaseTerminal.apply(this, arguments);
    }

    BaseTerminal.call(this, options || (options = {}));

    this.open();

    if (!(options.rows || options.cols) || !options.geometry) {
      this.fitScreen();
    }
  };

  // Make RVT.Terminal inherit from BaseTerminal (term.js).
  inherits(Terminal, BaseTerminal);

  Terminal.prototype.fitScreen = function() {
    var width  = Math.floor(this.element.clientWidth / this.cols);
    var height = Math.floor(this.element.clientHeight / this.rows);

    var rows = Math.floor(window.innerHeight / height);
    var cols = Math.floor(this.parent.clientWidth / width);

    this.resize(cols, rows);

    return [cols, rows];
  };

}).call(this, Terminal);
;TI"dependency_digest;TI"%7487d90cdf31ee81952a20a24baebe14;FI"required_paths;T[I"D/Users/genadi/Development/rvt/vendor/assets/javascripts/term.js;FI"@/Users/genadi/Development/rvt/lib/assets/javascripts/rvt.js;FI"dependency_paths;T[{I"	path;TI"@/Users/genadi/Development/rvt/lib/assets/javascripts/rvt.js;FI"
mtime;TI"2015-01-05T21:28:29+02:00;TI"digest;TI"%5cdeb349ec4ac5f1439fc3e90efbd1a7;F{@I"D/Users/genadi/Development/rvt/vendor/assets/javascripts/term.js;F@ I"2015-01-06T11:47:55+02:00;T@"I"%5c0c301ea83083c24417995b52e75937;FI"
_version;TI"%e4948588ee29cc487e732dbb83c161b3;F

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rvt-1.0.0 test/dummy/tmp/cache/assets/development/sprockets/2f41a6a41d0a16db31cabd2b8689ca00
rvt-0.9.9 test/dummy/tmp/cache/assets/development/sprockets/2f41a6a41d0a16db31cabd2b8689ca00