tableling-rails 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Tableling
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
@@ -3555,7 +3555,7 @@ _.extend(Marionette.Module, {
3555
3555
  return Marionette;
3556
3556
  })(Backbone, _, $ || window.jQuery || window.Zepto || window.ender);
3557
3557
  /*!
3558
- * Tableling v0.0.17
3558
+ * Tableling v0.0.18
3559
3559
  * Copyright (c) 2012-2013 Simon Oulevay (Alpha Hydrae) <hydrae.alpha@gmail.com>
3560
3560
  * Distributed under MIT license
3561
3561
  * https://github.com/AlphaHydrae/tableling
@@ -3563,7 +3563,7 @@ _.extend(Marionette.Module, {
3563
3563
  Backbone.Tableling = Tableling = (function(Backbone, _, $){
3564
3564
 
3565
3565
  var Tableling = {
3566
- version : "0.0.17"
3566
+ version : "0.0.18"
3567
3567
  };
3568
3568
 
3569
3569
  // Tableling
@@ -3757,7 +3757,7 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
3757
3757
  // When instantiated, the view class will be passed the event
3758
3758
  // aggregator as the `vent` option. Additional options can be
3759
3759
  // given named after the view class, e.g. `pageSizeViewOptions`.
3760
- var options = _.extend(this[name + 'ViewOptions'] || {}, { vent: this.vent });
3760
+ var options = _.extend(this.getModuleOptions(name), { vent: this.vent });
3761
3761
 
3762
3762
  var view = new viewClass(options);
3763
3763
 
@@ -3776,6 +3776,11 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
3776
3776
  // used to fetch table data.
3777
3777
  getCollection : function() {
3778
3778
  return this.moduleViews.table.collection;
3779
+ },
3780
+
3781
+ getModuleOptions : function(name) {
3782
+ var options = this[name + 'ViewOptions'] || {};
3783
+ return typeof(options) == 'function' ? options.call(this) : options;
3779
3784
  }
3780
3785
  });
3781
3786
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Tableling v0.0.17
2
+ * Tableling v0.0.18
3
3
  * Copyright (c) 2012-2013 Simon Oulevay (Alpha Hydrae) <hydrae.alpha@gmail.com>
4
4
  * Distributed under MIT license
5
5
  * https://github.com/AlphaHydrae/tableling
@@ -7,7 +7,7 @@
7
7
  Backbone.Tableling = Tableling = (function(Backbone, _, $){
8
8
 
9
9
  var Tableling = {
10
- version : "0.0.17"
10
+ version : "0.0.18"
11
11
  };
12
12
 
13
13
  // Tableling
@@ -201,7 +201,7 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
201
201
  // When instantiated, the view class will be passed the event
202
202
  // aggregator as the `vent` option. Additional options can be
203
203
  // given named after the view class, e.g. `pageSizeViewOptions`.
204
- var options = _.extend(this[name + 'ViewOptions'] || {}, { vent: this.vent });
204
+ var options = _.extend(this.getModuleOptions(name), { vent: this.vent });
205
205
 
206
206
  var view = new viewClass(options);
207
207
 
@@ -220,6 +220,11 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
220
220
  // used to fetch table data.
221
221
  getCollection : function() {
222
222
  return this.moduleViews.table.collection;
223
+ },
224
+
225
+ getModuleOptions : function(name) {
226
+ var options = this[name + 'ViewOptions'] || {};
227
+ return typeof(options) == 'function' ? options.call(this) : options;
223
228
  }
224
229
  });
225
230
 
@@ -14826,7 +14826,7 @@ _.extend(Marionette.Module, {
14826
14826
  return Marionette;
14827
14827
  })(Backbone, _, $ || window.jQuery || window.Zepto || window.ender);
14828
14828
  /*!
14829
- * Tableling v0.0.17
14829
+ * Tableling v0.0.18
14830
14830
  * Copyright (c) 2012-2013 Simon Oulevay (Alpha Hydrae) <hydrae.alpha@gmail.com>
14831
14831
  * Distributed under MIT license
14832
14832
  * https://github.com/AlphaHydrae/tableling
@@ -14834,7 +14834,7 @@ _.extend(Marionette.Module, {
14834
14834
  Backbone.Tableling = Tableling = (function(Backbone, _, $){
14835
14835
 
14836
14836
  var Tableling = {
14837
- version : "0.0.17"
14837
+ version : "0.0.18"
14838
14838
  };
14839
14839
 
14840
14840
  // Tableling
@@ -15028,7 +15028,7 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
15028
15028
  // When instantiated, the view class will be passed the event
15029
15029
  // aggregator as the `vent` option. Additional options can be
15030
15030
  // given named after the view class, e.g. `pageSizeViewOptions`.
15031
- var options = _.extend(this[name + 'ViewOptions'] || {}, { vent: this.vent });
15031
+ var options = _.extend(this.getModuleOptions(name), { vent: this.vent });
15032
15032
 
15033
15033
  var view = new viewClass(options);
15034
15034
 
@@ -15047,6 +15047,11 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
15047
15047
  // used to fetch table data.
15048
15048
  getCollection : function() {
15049
15049
  return this.moduleViews.table.collection;
15050
+ },
15051
+
15052
+ getModuleOptions : function(name) {
15053
+ var options = this[name + 'ViewOptions'] || {};
15054
+ return typeof(options) == 'function' ? options.call(this) : options;
15050
15055
  }
15051
15056
  });
15052
15057
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tableling-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: