hooch 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a170476cbe77cfea18a0cb19690682b6b68b6fb8
4
- data.tar.gz: 99ea410d8d7471a265cf4f641feb47a4f2b16136
3
+ metadata.gz: 537457548bc13651ff5a0cd5fdb4c289c9bed85b
4
+ data.tar.gz: f740bfa709fd619d94ee26482efb03796a44fb2f
5
5
  SHA512:
6
- metadata.gz: 32b1b3c887f907dece42f039a07b84676a8025e2a36614d619494cb1c96217aaa1aba675ec3210a19f3fd5ff289d1a4f0c230848f016b89a97a8b270e097b0e9
7
- data.tar.gz: 90a2c9087c8d80a13bcfd2743fa396b1b1cd3ae52344b9366da430c144898bceee548ad1ba0163e53f42d1a2581b8fd5b65578ceeed2bb1dbca2ac4e29c68ade
6
+ metadata.gz: 3f9989d68446177848eec0b53d4805abbbd5134896eac76401b5dc6ea700366f4c375aa07ae8657cf0bac1d21e350935b83e9ce293c3dceb7bbcc65faa6c3946
7
+ data.tar.gz: c7fad68f89334bc300295b7abbfc0cbc450a688f9ab1f4ef4b7f656fb74141e9a5c4a8071c11d8010a7af18744499beb4eaae48c2eee215c912e71c93bae3fd3
@@ -627,7 +627,6 @@ var initHooch = function(){
627
627
  this.$sorter = $sorter
628
628
  $sorter.data('sorter',this)
629
629
  this.is_visible = $sorter.is(':visible')
630
- this.allow_nested = typeof($sorter.data('allow-nested')) != 'undefined'
631
630
  if(this.is_visible){
632
631
  this.setWidth();
633
632
  this.getSortElements()
@@ -1022,22 +1021,12 @@ var initHooch = function(){
1022
1021
  this.height = this.$sort_element.height()
1023
1022
  }
1024
1023
  this.dragging = false
1025
- this.determineIfSortable();
1026
- if(this.sortable){
1027
- this.getDragHandle()
1028
- this.$sort_element.css({cursor: ''});
1029
- this.$drag_handle.css({cursor: 'move'});
1030
- var sort_element = this
1031
- this.$drag_handle.on('mousedown', $.proxy(sort_element.onMousedown, sort_element))
1032
- this.$sort_element.on('dragstart', function(e){hooch.pauseEvent(e); return false})
1033
- }
1034
- },
1035
- determineIfSortable: function(){
1036
- if(this.$sort_element.find('[data-sorter]').length > 0 && !this.sorter.allow_nested){
1037
- this.sortable = false
1038
- } else {
1039
- this.sortable = true
1040
- }
1024
+ this.getDragHandle()
1025
+ this.$sort_element.css({cursor: ''});
1026
+ this.$drag_handle.css({cursor: 'move'});
1027
+ var sort_element = this
1028
+ this.$drag_handle.on('mousedown', $.proxy(sort_element.onMousedown, sort_element))
1029
+ this.$sort_element.on('dragstart', function(e){hooch.pauseEvent(e); return false})
1041
1030
  },
1042
1031
  onMousedown: function(e){
1043
1032
  if(1 == e.which){
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut