', {
"class": 'mercury-statusbar-path'
}).appendTo(this.element);
if (!this.visible) {
this.element.css({
visibility: 'hidden'
});
}
return this.element.appendTo((_ref = jQuery(this.options.appendTo).get(0)) != null ? _ref : 'body');
};
Statusbar.prototype.bindEvents = function() {
var _this = this;
Mercury.on('region:update', function(event, options) {
if (options.region && jQuery.type(options.region.path) === 'function') {
return _this.setPath(options.region.path());
}
});
return this.aboutElement.on('click', function() {
return Mercury.lightview('/mercury/lightviews/about.html', {
title: "Mercury Editor v" + Mercury.version
});
});
};
Statusbar.prototype.height = function() {
return this.element.outerHeight();
};
Statusbar.prototype.top = function() {
var currentTop, top;
top = this.element.offset().top;
currentTop = parseInt(this.element.css('bottom')) < 0 ? top - this.element.outerHeight() : top;
if (this.visible) {
return currentTop;
} else {
return top + this.element.outerHeight();
}
};
Statusbar.prototype.setPath = function(elements) {
var element, path, _i, _len;
path = [];
for (_i = 0, _len = elements.length; _i < _len; _i++) {
element = elements[_i];
path.push("
" + (element.tagName.toLowerCase()) + "");
}
return this.pathElement.html("
" + (Mercury.I18n('Path:')) + " " + (path.reverse().join(' » ')) + "");
};
Statusbar.prototype.show = function() {
this.visible = true;
this.element.css({
opacity: 0,
visibility: 'visible'
});
return this.element.animate({
opacity: 1
}, 200, 'easeInOutSine');
};
Statusbar.prototype.hide = function() {
this.visible = false;
return this.element.css({
visibility: 'hidden'
});
};
return Statusbar;
})();
}).call(this);
; TI"dependency_digest; F"%4a292f1821984cbf6266b0b6abf28f11I"required_paths; F[I"/Users/jrissler/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/mercury-rails-0.9.0/app/assets/javascripts/mercury/statusbar.js.coffee; FI"dependency_paths; F[{I" path; FI"/Users/jrissler/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/mercury-rails-0.9.0/app/assets/javascripts/mercury/statusbar.js.coffee; FI"
mtime; FI"2013-12-30T11:31:51-05:00; FI"digest; F"%1ec76735dd200837ac8c639cd33a03f1I"
_version; F"%6776f581a4329e299531e1d52aa59832