romo 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,7 @@ var RomoInvoke = function(element) {
9
9
  this.targetElem = $(this.elem.data('romo-invoke-target'));
10
10
  this.invokeOn = this.elem.data('romo-invoke-on') || 'click';
11
11
  this.invokeAttr = this.elem.data('romo-invoke-attr') || 'href';
12
+ this.invokeMethod = this.elem.data('romo-invoke-method') || 'GET';
12
13
  this.loadOnlyOnce = this.elem.data('romo-invoke-load-once') === true;
13
14
 
14
15
  this.elem.unbind(this.invokeOn);
@@ -59,6 +60,7 @@ RomoInvoke.prototype.doLoad = function(href) {
59
60
  this._trigger('invoke:loadStart', [this]);
60
61
 
61
62
  $.ajax({
63
+ type: this.invokeMethod,
62
64
  url: href,
63
65
  success: $.proxy(this.onLoadAjaxSuccess, this),
64
66
  error: $.proxy(this.onLoadAjaxError, this)
data/lib/romo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.12.0"
2
+ VERSION = "0.13.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 43
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 12
8
+ - 13
9
9
  - 0
10
- version: 0.12.0
10
+ version: 0.13.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding