opalla 0.1.1 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b420c0145b5c3f9a19e09a13662039babd80df2f
4
- data.tar.gz: 9aad2ce70fb5d1b98fc5039c4dbe3c727e2e63e3
3
+ metadata.gz: 325b6904f4939564d8ef5b0da9c1d4cc4f2cf91a
4
+ data.tar.gz: 205e9664ba7b63bf7acacbb12ac06c1ebb3a07f3
5
5
  SHA512:
6
- metadata.gz: a1ff2aeb30b377ffcbc3718b73642be5338251088750a588ebebc6d9db4aca5cad6ea9a51c1c8b8108d93df15a7c148010bf06b5120a3a1844ba751a52093fbe
7
- data.tar.gz: 5a83dc76cdfaee6cfc9b0359dbcd981c5273c2748835ef1c405e13b50f14adee079a2049229c358ca8b489b34a9840bc7ca7e36de19bafd381d9ccf36ef7a9a8
6
+ metadata.gz: d5e118ae2aacd2e6fe45d7cbf49817543416a605ffe03dd0a7fd0109d053d5ae08484fd6e4dc21c59dd921218317c3d39b674ab08e67371d5ed49054f24edba9
7
+ data.tar.gz: 3d2cc8077c966dfa4770b7c4a5736d743486f0f5696a741c60cfff3c4895c635f0b259404c3b34ef2ca9e3317402b3992b4025cdc725a67bd5d0430d235f95c8
@@ -1,3 +1,3 @@
1
1
  module Opalla
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -34,11 +34,10 @@ module Opalla
34
34
  end
35
35
  when Element
36
36
  sel = '[data-model-id]'
37
- $console.log arg
38
37
  if arg.is(sel)
39
- find(arg)
38
+ arg
40
39
  else
41
- find(arg.closest(sel).first.data('model-id'))
40
+ find(arg.closest(sel).attr('data-model-id'))
42
41
  end
43
42
  end
44
43
  end
@@ -59,7 +58,7 @@ module Opalla
59
58
  end
60
59
 
61
60
  def callbacks
62
- @bindings.map { |b| b[:callback] }
61
+ bindings.map { |b| b[:callback] }
63
62
  end
64
63
 
65
64
  protected
@@ -22,7 +22,8 @@ module Opalla
22
22
  html
23
23
  else
24
24
  target = Element[template.render(self)]
25
- el.morph(target).attr(:id, id)
25
+ # el.morph(target).attr(:id, id)
26
+ el.html(target.html).attr(:id, id)
26
27
  bind_events
27
28
  end
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opalla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Maciel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-23 00:00:00.000000000 Z
11
+ date: 2017-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler