ende 0.4.14 → 0.4.15
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: 27f5d1046eba4368d91e2cddff6dc04d33625fc8
|
4
|
+
data.tar.gz: 84d2ca06c85958ba09d76ef0ad14107da743037c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f828b41e587cc7b98b0724079b42a0559321deef5dec4c76eb7a49be06587d7a7bf69ac682a7b6e494817b04f0d9649621c0be5fe032972ca5144f4b50cf790a
|
7
|
+
data.tar.gz: b34d32b2260ce4f7b79c48730c40c6f6dc4bf7bb27f0c9b1c0483a8fe6e9f480c342684d9741c2c8dc6d5a99856ba860714f60b9bf7054474dc15c9a6663edae
|
@@ -70,10 +70,6 @@ define 'aura/extensions/widget/lifecycleable', ->
|
|
70
70
|
|
71
71
|
recyclable.super.constructor.call @, options
|
72
72
|
|
73
|
-
# TODO think how to initialize widgets with elements out of dom
|
74
|
-
if options?.el?.length and not @$el?.length
|
75
|
-
@$el = options.el
|
76
|
-
|
77
73
|
@initialized()
|
78
74
|
|
79
75
|
inject: (name, options) ->
|
@@ -30,9 +30,10 @@ define ->
|
|
30
30
|
@emit 'showed'
|
31
31
|
|
32
32
|
render: (options) ->
|
33
|
-
{widget, content: child}
|
34
|
-
{sandbox, $el: el}
|
35
|
-
identifier
|
33
|
+
{widget, content: child} = options
|
34
|
+
{sandbox, $el: el} = widget
|
35
|
+
identifier = child.identifier || child.resource || 'default'
|
36
|
+
@initialization = sandbox.data.deferred()
|
36
37
|
|
37
38
|
@el = el
|
38
39
|
|
@@ -53,18 +54,24 @@ define ->
|
|
53
54
|
@positionate() if options.autoshow
|
54
55
|
|
55
56
|
# TODO get identifier through sandbox method instead of generating here
|
56
|
-
|
57
|
+
|
58
|
+
sandbox.once "#{child.name}.#{identifier}.started", (widget) ->
|
57
59
|
el.removeClass 'injecting'
|
58
60
|
@positionate()
|
59
61
|
|
60
62
|
# TODO better close html creation and handling
|
61
63
|
el.prepend @close_template if options.closable
|
64
|
+
, @
|
62
65
|
|
66
|
+
sandbox.once "#{child.name}.#{identifier}.initialized", (widget) ->
|
67
|
+
@initialization.resolveWith @
|
68
|
+
, @
|
63
69
|
|
64
70
|
remove: ->
|
65
|
-
@
|
66
|
-
|
67
|
-
|
71
|
+
@initialization.done ->
|
72
|
+
@emit 'hide'
|
73
|
+
@el.detach()
|
74
|
+
@
|
68
75
|
|
69
76
|
|
70
77
|
type: 'Base'
|
data/lib/ende/version.rb
CHANGED