tableling-rails 0.0.12 → 0.0.13

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.12"
2
+ VERSION = "0.0.13"
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.15
3558
+ * Tableling v0.0.16
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.15"
3566
+ version : "0.0.16"
3567
3567
  };
3568
3568
 
3569
3569
  // Tableling
@@ -3591,6 +3591,7 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
3591
3591
  this.vent = options.vent || new Backbone.Wreqr.EventAggregator();
3592
3592
 
3593
3593
  this.fetchOptions = _.extend(_.clone(this.fetchOptions || {}), _.result(options, 'fetchOptions') || {});
3594
+ this.autoUpdate = typeof(options.autoUpdate) != 'undefined' ? options.autoUpdate : true;
3594
3595
 
3595
3596
  // Components should trigger the `table:update` event to update
3596
3597
  // the table (e.g. change page size, sort) and fetch the new data.
@@ -3602,7 +3603,9 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
3602
3603
  // Called once rendering is complete. By default, it updates the table.
3603
3604
  setup : function() {
3604
3605
  this.ventTrigger('table:setup', this.config);
3605
- this.ventTrigger('table:update');
3606
+ if (this.autoUpdate) {
3607
+ this.ventTrigger('table:update');
3608
+ }
3606
3609
  },
3607
3610
 
3608
3611
  // Subclasses must return the Backbone.Collection used to fetch data.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Tableling v0.0.15
2
+ * Tableling v0.0.16
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.15"
10
+ version : "0.0.16"
11
11
  };
12
12
 
13
13
  // Tableling
@@ -35,6 +35,7 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
35
35
  this.vent = options.vent || new Backbone.Wreqr.EventAggregator();
36
36
 
37
37
  this.fetchOptions = _.extend(_.clone(this.fetchOptions || {}), _.result(options, 'fetchOptions') || {});
38
+ this.autoUpdate = typeof(options.autoUpdate) != 'undefined' ? options.autoUpdate : true;
38
39
 
39
40
  // Components should trigger the `table:update` event to update
40
41
  // the table (e.g. change page size, sort) and fetch the new data.
@@ -46,7 +47,9 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
46
47
  // Called once rendering is complete. By default, it updates the table.
47
48
  setup : function() {
48
49
  this.ventTrigger('table:setup', this.config);
49
- this.ventTrigger('table:update');
50
+ if (this.autoUpdate) {
51
+ this.ventTrigger('table:update');
52
+ }
50
53
  },
51
54
 
52
55
  // Subclasses must return the Backbone.Collection used to fetch data.
@@ -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.15
14829
+ * Tableling v0.0.16
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.15"
14837
+ version : "0.0.16"
14838
14838
  };
14839
14839
 
14840
14840
  // Tableling
@@ -14862,6 +14862,7 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
14862
14862
  this.vent = options.vent || new Backbone.Wreqr.EventAggregator();
14863
14863
 
14864
14864
  this.fetchOptions = _.extend(_.clone(this.fetchOptions || {}), _.result(options, 'fetchOptions') || {});
14865
+ this.autoUpdate = typeof(options.autoUpdate) != 'undefined' ? options.autoUpdate : true;
14865
14866
 
14866
14867
  // Components should trigger the `table:update` event to update
14867
14868
  // the table (e.g. change page size, sort) and fetch the new data.
@@ -14873,7 +14874,9 @@ Backbone.Tableling = Tableling = (function(Backbone, _, $){
14873
14874
  // Called once rendering is complete. By default, it updates the table.
14874
14875
  setup : function() {
14875
14876
  this.ventTrigger('table:setup', this.config);
14876
- this.ventTrigger('table:update');
14877
+ if (this.autoUpdate) {
14878
+ this.ventTrigger('table:update');
14879
+ }
14877
14880
  },
14878
14881
 
14879
14882
  // Subclasses must return the Backbone.Collection used to fetch data.
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.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
12
+ date: 2013-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails