material_raingular 0.2.2 → 0.2.3

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: 7feb8b03cb4dd54ce06feb7ca353f6335a232e44
4
- data.tar.gz: e6023dba950becffbf1262d35ce2e361f5e4c62f
3
+ metadata.gz: df739fdf0ca5bac9d3ebbc491e5061195741fb82
4
+ data.tar.gz: 609bd11a694ca07ceed95ffc8862f6b6326740e6
5
5
  SHA512:
6
- metadata.gz: 2f727e3e36d8813611ecb1c4f19408da9b3de3144f279d5c734e8b58715ce91cd5415e4602ce385817d00bba42d83984370b52909f1f9b14f9f178d0a84eb54c
7
- data.tar.gz: 84c48f4bdc3e4a3f5f2bee25cb55c5490b1e9ea02e9c07617c5d4500435a068e7a66b68f7624706b9df8b2f9bb4274253d9831bbfa51dbcd12a21a9b25ed7be9
6
+ metadata.gz: 8cdc768afc76411520b91dd5995866e39cf4d2ad205c5e3d41d1b0d2e2db3d2aa04792d9d85c61756260cdefa534c55619224a6c2db74b5119c8f0c7ab6b251c
7
+ data.tar.gz: 65bcabba1e1603b643b5329b05cd8345c029aad81221f8d687ec6b0d41b9284fcdc654b27228ea4d49bbff7e1db41eb3e04fd142b77b69ee57b1bffa50e4a466
@@ -20,8 +20,10 @@ angular.module 'NgDestroy', ['Factories']
20
20
  list = list[childScope]
21
21
  else
22
22
  list = scope[factory]
23
- list.drop(scope[modelName])
23
+ resource = list #Save resource for later if server returns success
24
24
  list = $injector.get(factory)
25
25
  object = {id: scope[modelName].id}
26
- list.delete object, (returnData)->
26
+ list.delete(object).$promise #remove from server
27
+ .then (returnData)->
28
+ resource.drop(scope[modelName]) #remove from view
27
29
  ngCallbackCtrl.evaluate(returnData) if !!ngCallbackCtrl
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
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.2
4
+ version: 0.2.3
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-09-29 00:00:00.000000000 Z
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler