material_raingular 0.6.5 → 0.6.6

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: b636a42dd2b4835847f9256ccc82fecc57a1463b
4
- data.tar.gz: 46138c1fa8cd7c3bf12ad4fc699493af2b7a6288
3
+ metadata.gz: 9f734875fd5a0c95120b65ee5fe901840220d0db
4
+ data.tar.gz: 71cd93c617255ad32a8c75dd74d0e3ec1112ef8f
5
5
  SHA512:
6
- metadata.gz: 24d16314cda33b8d0b312b909c1491aeecb9eb2a4fb1e135303908b65c0e8a86ab4d93adfa027091f167bf1d7b99e2264eccee5343e105aa56218d793d648ae4
7
- data.tar.gz: 3272ca9fbbbcacee1ae2822069cf445b2aa223694a42782cb90ac20fd9242d84498adff56d7d920344f7534cd628e4c64afbdbd6e024cc55cb175f07e942d3f3
6
+ metadata.gz: 76ba6e88119e3e1dcec19a527bb355de728cdab4da100f721e985b82bc9a59c56fad547b54183fe69473a61edc7c93a03d2b745c0d95e858f5b42467704ca3b3
7
+ data.tar.gz: cac15f39f749eb6e08651157280da98bf823fe6ba8ae594ce31d7f022bb35b589def0f8e031d476e089a6820364d392bbb13b674f8065549b05b7417b49b52ad
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- material_raingular (0.6.5)
4
+ material_raingular (0.6.6)
5
5
  js-routes
6
6
 
7
7
  GEM
@@ -3,15 +3,18 @@ class @AngularScopedModel extends AngularModel
3
3
  @inject: (args...) ->
4
4
  args.push('$scope','$rootScope','$routeParams','$controller')
5
5
  @$inject = args
6
- @extendController: (args...) ->
7
- @$extendedControllers = args
6
+ @extendController: ->
7
+ @$extendedControllers = [].slice.call(arguments,0)
8
8
  constructor: (args...) ->
9
9
  # Bind injected dependencies on scope ie @$scope
10
10
  for key, index in @constructor.$inject || []
11
11
  @[key] = args[index]
12
12
  # extend controllers
13
- for name in @constructor.$extendedControllers || []
14
- angular.extend @, @$controller name, {$scope: @$scope}
13
+ for controller in @constructor.$extendedControllers || []
14
+ name = controller.name || controller
15
+ opts = {$scope: @$scope}
16
+ opts[key] = @[val] for key,val of controller.scope || {}
17
+ angular.extend @, @$controller name, opts
15
18
  # Bind all functions not begining with _ to scope
16
19
  for key, val of @constructor.prototype
17
20
  continue if key in ['constructor', 'initialize'] or key[0] is '_'
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.6.5"
2
+ VERSION = "0.6.6"
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.5
4
+ version: 0.6.6
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-08-16 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler