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: 366143dcc04a9059cdde358b8d38208bba8964c9
4
- data.tar.gz: 20148f9f1eba252ee539a5da24a5257b7b53632e
3
+ metadata.gz: f0025dca46ba48454a8b2fcaf78a4f30ab332bc4
4
+ data.tar.gz: a4383dedfe09796c31b02b01e82d204647ee7a02
5
5
  SHA512:
6
- metadata.gz: 8b00003098f3dc5e890a4e807e4251746f0ff9ffa4ed632a5264bd5984cf924bb30a1693d1ec54442e7c8c279e37ba6730aec6c65e745bfe5daa23a8d0e7b7b1
7
- data.tar.gz: 5e54c20f4ef4c2f5be7ed7e7f1eaeb740e195eb41ae25642328a15a489527ed2df96250fc8c9c31aca3a64ae57e9669439a6725f8546eaad120d149ac869d0eb
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].currently_updating = [] unless @scope[@modelName].currently_updating
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].currently_updating.includes(atomName)
35
- @scope[@modelName].currently_updating.push(atomName)
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].currently_updating.drop(atomName)
38
+ @scope[@modelName].$currentlyUpdating.drop(atomName)
39
39
  unless @equiv(@ngModelCtrl.$viewValue,returnData[@atomName])
40
40
  @ngModelCtrl.$setModelValue = returnData[@atomName]
41
41
  @ngModelCtrl.$render()
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.6.0.1"
2
+ VERSION = "0.6.0.2"
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.6.0.1
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-01 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler