material_raingular 0.2.8 → 0.2.8.5

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: a938613a6207d86ccd6aaa6acc91a5d5a4bafabe
4
- data.tar.gz: 150ff98174477fd964752a3dcea14a2c6e9b895b
3
+ metadata.gz: 95147e7518709c5fceb63c7b59afdc5b197de353
4
+ data.tar.gz: 29cf68afa9298a9f82a4acd1f51a00763c11769a
5
5
  SHA512:
6
- metadata.gz: 68951c8c8818fd55df2af294d18aad621963d43a9b5bb117988784457ac7efe031604e79dd33a3e0a32c8891107777bcc27118de19a2712be10f1ccdb9cfa5b0
7
- data.tar.gz: 062eff127d5023bcb6ea4327a80e1170f7db7e8a9f1dde9cafd4dc23bc588656042ca33a9eded3ce0924054445f114d5f3a2f40044876ef79b657252004684de
6
+ metadata.gz: db49329aaa2478290a4439d0b22c951bc0bc6a001fb34cffd56fa52db29de154b3e9f70982fd3e0265d13139f2efd2356a96ef68cba77f9a64159940bd676595
7
+ data.tar.gz: 052df1d7c1d54f8e277751eae60fc3ca4d67b6b5cc00578cdc3da9daf53e34bdf5c53e731c6290cee0c88852c6413e78b6b52d5ef6ac549600a437c4f73f29ef
@@ -6,9 +6,8 @@ class DirectiveModels.MrUpdateModel extends AngularLinkModel
6
6
  )
7
7
  initialize: ->
8
8
  [@ngModelCtrl,@mrCallbackCtrl,@ngTrackByCtrl] = @$controller
9
- @updater = @RailsUpdater.new(@$scope,@$controller,@$attrs.ngModel,@$attrs.ngOverride,@_options().factory)
9
+ @updater = @RailsUpdater.new(@$scope,@$controller,@$attrs.ngModel,@$attrs.ngOverride,@_factory())
10
10
  @_bind()
11
-
12
11
  @register(Directives.MrUpdate)
13
12
 
14
13
  _bind: -> @$timeout => @_bindInput()[@_funcName()]()
@@ -46,13 +45,14 @@ class DirectiveModels.MrUpdateModel extends AngularLinkModel
46
45
  return if old == undefined
47
46
  @updater.update(updated) unless updated == old
48
47
  _specificTypes: ['radio','date','checkbox','hidden']
48
+ _factory: -> @_options().factory
49
49
  _options: -> @$scope.$eval(@$attrs.mrOptions || '{}')
50
- _type: -> @$attrs.type
50
+ _type: -> @$attrs.type.toLowerCase()
51
51
  _tagName: -> @$element[0].tagName
52
52
  _modelName: -> @$attrs.ngModel
53
53
  _modelVal: -> @$parse(@$attrs.ngModel)
54
54
  _isInput: -> @_tagName() == 'INPUT'
55
55
  _funcName: ->
56
56
  return 'textarea' if @_tagName() == 'TEXTAREA'
57
- return (@_specificTypes.intersection([@_tagName()])[0] || 'text') if @_isInput()
57
+ return (@_specificTypes.intersection([@_type()])[0] || 'text') if @_isInput()
58
58
  'other'
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.8.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-16 00:00:00.000000000 Z
11
+ date: 2016-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler