o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1370240863.883064: @value"A {I" class:EFI"ProcessedAsset;FI"logical_path;FI"mercury/palette.js;TI" pathname;FI"/Users/muntasinahmed/.rvm/gems/ruby-1.9.3-p392@global/gems/mercury-rails-0.9.0/app/assets/javascripts/mercury/palette.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-06-03T12:02:31+06:00;FI" length;Fi–I" digest;F"%04bc44376574e29eb87ef48eedff0ae1I" 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); ;TI"dependency_digest;F"%210f4025d2094c4f36b0b8106044f80aI"required_paths;F[I"/Users/muntasinahmed/.rvm/gems/ruby-1.9.3-p392@global/gems/mercury-rails-0.9.0/app/assets/javascripts/mercury/palette.js.coffee;TI"dependency_paths;F[{I" path;FI"/Users/muntasinahmed/.rvm/gems/ruby-1.9.3-p392@global/gems/mercury-rails-0.9.0/app/assets/javascripts/mercury/palette.js.coffee;TI" mtime;FI"2013-06-03T12:02:31+06:00;FI" digest;F"%d3fdbafb0ccdfedbd3555609d98cd009I" _version;F"%6776f581a4329e299531e1d52aa59832