o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1388436950.08306: @value"® {I" class:EFI"BundledAsset;FI"logical_path;FI"mercury/palette.js;FI" pathname;FI"‘/Users/jrissler/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/bundler/gems/mercury-6daffeeb487e/app/assets/javascripts/mercury/palette.js.coffee;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-11-20T08:09:45-05:00;FI" length;Fi”I" digest;F"%ed2c5526386b4b0959f2ba80cc724192I" source;FI"”(function() { var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; this.Mercury.Palette = (function(_super) { __extends(Palette, _super); function Palette(url, name, options) { this.url = url; this.name = name; this.options = options != null ? options : {}; Palette.__super__.constructor.apply(this, arguments); } Palette.prototype.build = function() { var _ref; this.element = jQuery('
', { "class": "mercury-palette mercury-" + this.name + "-palette loading", style: 'display:none' }); return this.element.appendTo((_ref = jQuery(this.options.appendTo).get(0)) != null ? _ref : 'body'); }; Palette.prototype.bindEvents = function() { var _this = this; Mercury.on('hide:dialogs', function(event, dialog) { if (dialog !== _this) { return _this.hide(); } }); return Palette.__super__.bindEvents.apply(this, arguments); }; Palette.prototype.position = function(keepVisible) { var position, width; this.element.css({ top: 0, left: 0, display: 'block', visibility: 'hidden' }); position = this.button.position(); width = this.element.width(); if (position.left + width > jQuery(window).width()) { position.left = position.left - width + this.button.width(); } return this.element.css({ top: position.top + this.button.height(), left: position.left, display: keepVisible ? 'block' : 'none', visibility: 'visible' }); }; return Palette; })(Mercury.Dialog); }).call(this); ;FI"required_assets_digest;F"%1f96e397fbd6311ef8fea84702b648b1I" _version;F"%6776f581a4329e299531e1d52aa59832