Sha256: 10f0d1a6c56331bf058057d22c4623ecd7e68ffe7618091aee6ff30299016666

Contents?: true

Size: 1.79 KB

Versions: 8

Compression:

Stored size: 1.79 KB

Contents

{:uriI"Åfile:///Users/madmax/Programs/itmammoth/with_popup/app/assets/javascripts/with_popup.js?type=application/javascript&pipeline=self&id=ec8b27557538003b25faf84e45d0f6ea2a841348ba1330b3dd3bbf74cb4f8c55:ET:load_pathI"G/Users/madmax/Programs/itmammoth/with_popup/app/assets/javascripts;T:
filenameI"U/Users/madmax/Programs/itmammoth/with_popup/app/assets/javascripts/with_popup.js;T:	nameI"with_popup;T:logical_pathI"with_popup.self.js;T:content_typeI"application/javascript;T:sourceI"ø(function($){
  var methods = {
    init: function(options) {
      return this.each(function() {
        var $this = $(this),
            data = $this.data('withPopup');
        if (!data) {
          $this.on('click', openPopup);
          $(this).data('withPopup' $this);
        }
      });
    },
   },

   $.fn.withPopup = function(method) {
    if (methods[method]) {
      return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
    } else if (typeof method === 'object' || !method) {
      return methods.init.apply(this, arguments);
    } else {
      $.error( 'Method ' +  method + ' does not exist on jQuery.withPopup');
    }

  };

  var openPopup = function(e) {
    window.open('', 'submit_with_popup');
  };

})(jQuery);
;T:
metadata{:dependencieso:Set:
@hash{	I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"cfile-digest:///Users/madmax/Programs/itmammoth/with_popup/app/assets/javascripts/with_popup.js;TT:
requiredo;;{:stubbedo;;{:
linkso;;{:charsetI"
utf-8;F:digest"%8¢ÑJÜjš9W~[^ü©[ñHub°Û	GÈÂ#b:lengthiø:dependencies_digest"%š„`kc· BÔS@«‚µ{A²¸=¶Âƒ³»ÆND:idI"Eec8b27557538003b25faf84e45d0f6ea2a841348ba1330b3dd3bbf74cb4f8c55;F:
mtimel+?î V

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
with_popup-0.1.0 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ox_2qKjWcinBXOT0I1g0RskpBkaL6Xqx7xfAjEPlfnE.cache
with_popup-0.0.7 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ox_2qKjWcinBXOT0I1g0RskpBkaL6Xqx7xfAjEPlfnE.cache
with_popup-0.0.6 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ox_2qKjWcinBXOT0I1g0RskpBkaL6Xqx7xfAjEPlfnE.cache
with_popup-0.0.5 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ox_2qKjWcinBXOT0I1g0RskpBkaL6Xqx7xfAjEPlfnE.cache
with_popup-0.0.4 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ox_2qKjWcinBXOT0I1g0RskpBkaL6Xqx7xfAjEPlfnE.cache
with_popup-0.0.3 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ox_2qKjWcinBXOT0I1g0RskpBkaL6Xqx7xfAjEPlfnE.cache
with_popup-0.0.2 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ox_2qKjWcinBXOT0I1g0RskpBkaL6Xqx7xfAjEPlfnE.cache
with_popup-0.0.1 spec/dummy/tmp/cache/assets/development/sprockets/v3.0/ox_2qKjWcinBXOT0I1g0RskpBkaL6Xqx7xfAjEPlfnE.cache