Sha256: f5f7ec729544be1c0ed16efa415784605f4ca398b571c136853e873237ee714e

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"tenon/features/alert.js;FI"
pathname;TI"Y/Users/seanroberts/Sites/tenon/app/assets/javascripts/tenon/features/alert.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+b+SI"length;TiMI"digest;TI"%06c33eaeb47b2c3e789eaac9f30ec2bb;FI"source;TI"M(function() {
  var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };

  Tenon.features.Alert = (function() {

    function Alert() {
      this._dismissAlert = __bind(this._dismissAlert, this);
      this._showAlert = __bind(this._showAlert, this);      this.$alert = $('.alert');
      this._showAlert();
      $(document).on('click', this._dismissAlert);
    }

    Alert.prototype._showAlert = function() {
      this.height = this.$alert.outerHeight();
      return this.$alert.css('bottom', '-' + this.height + "px").show().animate({
        bottom: 0
      }, 250);
    };

    Alert.prototype._dismissAlert = function() {
      this.height = this.$alert.outerHeight();
      return this.$alert.animate({
        bottom: this.height * -1
      }, 250);
    };

    return Alert;

  })();

}).call(this);
;TI"required_assets_digest;TI"%660a947f3888bdc8684f7ac2413e8652;FI"
_version;TI"%a56df69ef97ba4d9f1a23bf9b0add58a;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
tenon-1.0 spec/dummy/tmp/cache/assets/development/sprockets/25ede664f834c594c99d66ad8eec613c
tenon-1.0 spec/dummy/tmp/cache/assets/development/sprockets/d12520134e0ccc3fd373d6eeae1351b3