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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95147e7518709c5fceb63c7b59afdc5b197de353
|
4
|
+
data.tar.gz: 29cf68afa9298a9f82a4acd1f51a00763c11769a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,@
|
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([@
|
57
|
+
return (@_specificTypes.intersection([@_type()])[0] || 'text') if @_isInput()
|
58
58
|
'other'
|
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-
|
11
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|