material_raingular 0.6.0.1 → 0.6.0.2
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: f0025dca46ba48454a8b2fcaf78a4f30ab332bc4
|
4
|
+
data.tar.gz: a4383dedfe09796c31b02b01e82d204647ee7a02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17c4d61a3384856c6807af0af2b3f2954c3a3c980f6b6738d0d14163640911a48a3d1d0eed2d31921413bdf8b33248ef8492b1fb44aec3e34d42a0a70b986356
|
7
|
+
data.tar.gz: e803c5a8718bc4532c803860c0c5d938abfaa69cd00490f2c3243e2aec5a08220f2e473463f37d78267410164306fd38ebf52f8966b1572ceb3a0cdc94cebbbb
|
@@ -14,12 +14,12 @@ class MrCreateModel extends AngularLinkModel
|
|
14
14
|
create: ($event) =>
|
15
15
|
factory = @_parentFactory()?['create_' + @_modelName().singularize()] || @_factory().create
|
16
16
|
factory @_params(), (data) =>
|
17
|
-
@CallbackCtrl.evaluate(data) if @CallbackCtrl
|
18
17
|
@$timeout =>
|
19
18
|
if @_isCollection()
|
20
19
|
@_models().last().push(data)
|
21
20
|
else
|
22
21
|
@_parentModel()[@_modelName()] = data
|
22
|
+
@CallbackCtrl.evaluate(data) if @CallbackCtrl
|
23
23
|
|
24
24
|
#Private
|
25
25
|
_modelPieces: ->
|
@@ -20,7 +20,7 @@ class RailsUpdate
|
|
20
20
|
return true if (!!left && !!right) == false
|
21
21
|
false
|
22
22
|
update: (value) ->
|
23
|
-
@scope[@modelName]
|
23
|
+
@scope[@modelName].$currentlyUpdating = [] unless @scope[@modelName].$currentlyUpdating
|
24
24
|
atomName = if typeof @atomName == 'function' then @atomName(@scope) else @atomName
|
25
25
|
@value = if @override then @scope.$eval(atomName) else value
|
26
26
|
object = {id: @scope.$eval(@modelName).id}
|
@@ -31,11 +31,11 @@ class RailsUpdate
|
|
31
31
|
object[@railsName] = @scope.$eval(@modelName)
|
32
32
|
func = 'create'
|
33
33
|
object[@railsName][atomName] = value
|
34
|
-
unless @scope[@modelName].
|
35
|
-
@scope[@modelName].
|
34
|
+
unless @scope[@modelName].$currentlyUpdating.includes(atomName)
|
35
|
+
@scope[@modelName].$currentlyUpdating.push(atomName)
|
36
36
|
@factory[func] object, (returnData) =>
|
37
37
|
@scope.$eval(@modelName).id = returnData.id if returnData.id
|
38
|
-
@scope[@modelName].
|
38
|
+
@scope[@modelName].$currentlyUpdating.drop(atomName)
|
39
39
|
unless @equiv(@ngModelCtrl.$viewValue,returnData[@atomName])
|
40
40
|
@ngModelCtrl.$setModelValue = returnData[@atomName]
|
41
41
|
@ngModelCtrl.$render()
|
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.6.0.
|
4
|
+
version: 0.6.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|