ende 0.5.10 → 0.5.12

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: 7ef17acb592f82967df3a8ac261e041cfc75e89d
4
- data.tar.gz: 763d3c38a214e34619757c030b7231201ff84ae3
3
+ metadata.gz: 69671c40c9569195f1c98a3228073c2b8f6d2bf9
4
+ data.tar.gz: 15c2c1a58050e435a7a4f75d4a00e918e19c47b4
5
5
  SHA512:
6
- metadata.gz: c6fd008aa547188f0475a326e43b893f036cd362a24d2ed14a8669a6a7ee2dbae82c7dc0d4e3eedd146377c9dbdfbfef0c799019096e7791839721e1eb853785
7
- data.tar.gz: bb733db893fe3c8a198380616b45d088e8af96513ceba71836ba899f8129b6bf410dad1d1f80091220226a518e7a52c6f2b0b460147fb0d7e658c8e9b5623a34
6
+ metadata.gz: eb3f4dd813017fd91e0acfe5e8cf7b5f9e034f1ddce6d8d5f36b5f62e245bf9612ce208656da341d25467af32fed3d04f5c6e3f70ddc3113396ad8591f155824
7
+ data.tar.gz: fd1d313968408439ea05104a41d23249e24d1e754e92e2983ab2a3cb08ce212935602420cf9692d35a5c79a04dae23a96c2570d5af6af096436c1b9a985e61d6
@@ -2,7 +2,7 @@
2
2
  "name": "indemma",
3
3
  "repository": "indefinido/indemma",
4
4
  "description": "Indemma (mind picture = memory), client side ES5 observable REST model",
5
- "version": "0.2.7",
5
+ "version": "0.2.8",
6
6
  "keywords": [],
7
7
  "dependencies": {
8
8
  "pluma/assimilate": "0.4.0",
@@ -157,7 +157,7 @@ descriptors = {
157
157
 
158
158
  association_name = this.resource.toString();
159
159
  current_value = this.owner.observed[association_name];
160
- if (current_value === associated) {
160
+ if (current_value === associated && !(current_value || associated)) {
161
161
  return;
162
162
  }
163
163
  this.owner.observed[association_name] = associated;
@@ -2,7 +2,7 @@
2
2
  "name": "observable",
3
3
  "repository": "indefinido/observable",
4
4
  "description": "Observable capabilities built upon observable shim.",
5
- "version": "0.2.3",
5
+ "version": "0.2.4",
6
6
  "keywords": [],
7
7
  "dependencies": {
8
8
  "component/jquery": "*"
@@ -1,14 +1,13 @@
1
- import lookup from '../lookup.js';
2
- import jQuery from 'jquery';
1
+ import lookup from '../lookup.js';
2
+ import jQuery from 'jquery';
3
3
  var scheduler, schedulerable;
4
4
 
5
5
  scheduler = function(options) {
6
- var name, timeout, value;
6
+ var name, value;
7
7
 
8
8
  if (options == null) {
9
9
  options = {};
10
10
  }
11
- timeout = null;
12
11
  for (name in options) {
13
12
  value = options[name];
14
13
  options[name] = {
@@ -27,8 +26,8 @@ scheduler = function(options) {
27
26
  deliver = function() {
28
27
  return _this.deliver();
29
28
  };
30
- clearTimeout(timeout);
31
- return timeout = setTimeout(deliver, 20 || options.wait);
29
+ clearTimeout(this.timer);
30
+ return this.timer = setTimeout(deliver, 20 || options.wait);
32
31
  }
33
32
  }
34
33
  });
@@ -127,9 +126,12 @@ schedulerable.augment = function(observable) {
127
126
  }
128
127
  };
129
128
  unobserve = observable.unobserve;
130
- observable.unobserve = function() {
131
- unobserve.apply(this, arguments);
132
- return object.observation.scheduler.destroy();
129
+ observable.unobserve = function(object) {
130
+ if (!object.observation) {
131
+ return object;
132
+ }
133
+ object.observation.scheduler.destroy();
134
+ return unobserve.apply(this, arguments);
133
135
  };
134
136
  return jQuery.extend((function() {
135
137
  var object;
@@ -1,10 +1,18 @@
1
+ var observable;
2
+
3
+ Number.isNaN || (Number.isNaN = isNaN);
4
+
1
5
  import './platform.js';
6
+
2
7
  import jQuery from 'jquery';
8
+
3
9
  import observation from './observable/observation.js';
10
+
4
11
  import selection from './observable/selection.js';
12
+
5
13
  import KeypathObserver from './observable/keypath_observer.js';
14
+
6
15
  import SelfObserver from './observable/self_observer.js';
7
- var observable;
8
16
 
9
17
  observable = function() {
10
18
  var object;
data/lib/ende/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ende
2
- VERSION = "0.5.10"
2
+ VERSION = "0.5.12"
3
3
  end