material_raingular 0.1.5.3 → 0.1.5.4

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: d3837075b5e95dc40748dbbe0a97d70b5c560f8c
4
- data.tar.gz: e9bf61823a4254561e4777c1b845b536b51f08c0
3
+ metadata.gz: 0445a1bd23609962ce24495b386fa847d41a4b23
4
+ data.tar.gz: e1f729a314d4a73b22a5c06f3b68ac889d91c5fb
5
5
  SHA512:
6
- metadata.gz: 3a3c98015e5d3f642408a7fe7efe7df6be8e35fa221244b10f1c4c603f2f60d6b5efa8b57d3c69c6ecf10a9be16254fcfd30893c88991f78dfb4562144da1624
7
- data.tar.gz: 1701caa8061ba63aec2b35edc579c0fd0c42e1a553497fef8ec0f6ee6cb74e73dc67ce34e0e896b4c4f4820529f49ecfcb38c48bc958677785e027b05aa31f99
6
+ metadata.gz: 966ad5a588ccbb0e5dd0fd856482b427defa6242ea1546c60f5c098cb36c62a0d9beec9c4bc3c6b95189e97a116c8a9d61f1a76c7fb61c316cf7217d46ba2767
7
+ data.tar.gz: af2a53efb48d80dc166f26d0292e62161a52c8cc57a51a14a1064c242dec76ec361afa7f6a9c239820e2fffc05163a15d78f87762e77fc83fed167c7f76cfe20
@@ -20,15 +20,16 @@ class RailsUpdate
20
20
  return true if (!!left && !!right) == false
21
21
  false
22
22
  update: (value) ->
23
+ @scope[@modelName].currently_updating = [] unless @scope[@modelName].currently_updating
23
24
  atomName = if typeof @atomName == 'function' then @atomName(@scope) else @atomName
24
25
  @value = if @override then @scope.$eval(atomName) else value
25
26
  object = {id: @scope.$eval(@modelName).id}
26
27
  object[@railsName] = {}
27
28
  object[@railsName][atomName] = value
28
- unless @scope[@modelName].currently_updating
29
- @scope[@modelName].currently_updating = true
29
+ unless @scope[@modelName].currently_updating.includes(atomName)
30
+ @scope[@modelName].currently_updating.push(atomName)
30
31
  @factory.update object, (returnData) =>
31
- @scope[@modelName].currently_updating = false
32
+ @scope[@modelName].currently_updating.drop(atomName)
32
33
  unless @equiv(@ngModelCtrl.$viewValue,returnData[@atomName])
33
34
  @ngModelCtrl.$setModelValue = returnData[@atomName]
34
35
  @ngModelCtrl.$render()
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.1.5.3"
2
+ VERSION = "0.1.5.4"
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.1.5.3
4
+ version: 0.1.5.4
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-05-24 00:00:00.000000000 Z
11
+ date: 2016-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler