o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1328243689.8269541: @value{I" class:EFI"BundledAsset; FI"id; F"%484d5b8580855a3cfbb32136ee68bac8I"logical_path; F"*imperavi-rails/imperavi/textselect.jsI" pathname; F"f/home/tanraya/sandbox/imperavi-rails/app/assets/javascripts/imperavi-rails/imperavi/textselect.jsI"content_type; FI"application/javascript; FI" mtime; FI"2012-02-03T10:29:16+06:00; FI" body; FI"±/* jQuery plugin textselect * version: 0.9 * author: Josef Moravec, josef.moravec@gmail.com * updated: Imperavi * */ (function($){$.event.special.textselect={setup:function(data,namespaces) {$(this).data("textselected",false);$(this).data("ttt",data);$(this).bind('mouseup',$.event.special.textselect.handler);},teardown:function(data) {$(this).unbind('mouseup',$.event.special.textselect.handler);},handler:function(event) {var data=$(this).data("ttt");var text=$.event.special.textselect.getSelectedText(data).toString();if(text!='') {$(this).data("textselected",true);event.type="textselect";event.text=text;$.event.handle.apply(this,arguments);}},getSelectedText:function(data) {var text='';var frame=$('#imp_redactor_frame_'+data).get(0);if(frame.contentWindow.getSelection)text=frame.contentWindow.getSelection();else if(frame.contentWindow.document.getSelection) text=frame.contentWindow.document.getSelection();else if(frame.contentWindow.document.selection)text=frame.contentWindow.document.selection.createRange().text;return text;}} $.event.special.textunselect={setup:function(data,namespaces){$(this).data("rttt",data);$(this).data("textselected",false);$(this).bind('mouseup',$.event.special.textunselect.handler);$(this).bind('keyup',$.event.special.textunselect.handlerKey)},teardown:function(data){$(this).unbind('mouseup',$.event.special.textunselect.handler);},handler:function(event){if($(this).data("textselected")){var data=$(this).data("rttt");var text=$.event.special.textselect.getSelectedText(data).toString();if(text==''){$(this).data("textselected",false);event.type="textunselect";$.event.handle.apply(this,arguments);}}},handlerKey:function(event){if($(this).data("textselected")){var data=$(this).data("rttt");var text=$.event.special.textselect.getSelectedText(data).toString();if((event.keyCode=27)&&(text=='')){$(this).data("textselected",false);event.type="textunselect";$.event.handle.apply(this,arguments);}}}}})(jQuery); ; TI"asset_paths; F["f/home/tanraya/sandbox/imperavi-rails/app/assets/javascripts/imperavi-rails/imperavi/textselect.jsI"dependency_paths; F[{I" path; F"f/home/tanraya/sandbox/imperavi-rails/app/assets/javascripts/imperavi-rails/imperavi/textselect.jsI" mtime; FIu: Time d€›{u : @_zoneI" YEKT; T: nano_numi-: nano_deni: submicro"0: offseti`TI"hexdigest; F"%6e5bf1e86462359cf532cb689b1bcd9bI" _version; F"%46dde6621c301f4928e3b34efee9e3b5