ende 0.5.17 → 0.5.18

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: d62a004399b8ad893c25b9257f17718cf92ea501
4
- data.tar.gz: 8e85cccf4e26b1e2a98be2aea0df7b3196e4d66b
3
+ metadata.gz: 0e2d278108dc2a3e703ef721655dea264b4a9f08
4
+ data.tar.gz: 89e276412958298d8c2b8c88f47791bba799c93d
5
5
  SHA512:
6
- metadata.gz: 4eb6cae449302795e6d4a32dbfa12b3a7bee9f2c4da224d441611f664677c7e3d200581342b38d788c18e0864fca9185a51e15770e97c46be59caf099f85167f
7
- data.tar.gz: fe836112d5d8655d4e2bdf6ffd69fd67a3c0803717634534fc512c627ce22c3c5d68689bd6ca09750a15ef0893bacd385a571e52374722d09130b0ee705816a8
6
+ metadata.gz: f581d39499e76aab57c4818ba8bf6d5c0e13b33b8c855f64d32b7057d5a47890286fd84aae3ca7b04c9d46283d5328a256c39be1adf5fe8ca660e08e08bd97bc
7
+ data.tar.gz: 79d5a36c48a129578e8f2eeb3e88e75153616e69ba1934823fba853661ac20af28b50158c8dd58c7d73fbcfd7785a65b252ec65573420c032ec18e4c7fcfe898
data/component.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ende",
3
3
  "repo": "indefinido/ende",
4
4
  "description": "Core web application functionacility",
5
- "version": "0.5.13",
5
+ "version": "0.5.18",
6
6
  "keywords": [],
7
7
  "dependencies": {
8
8
  "mikeric/rivets": "v0.5.12",
@@ -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.8",
5
+ "version": "0.2.9",
6
6
  "keywords": [],
7
7
  "dependencies": {
8
8
  "pluma/assimilate": "0.4.0",
@@ -174,6 +174,13 @@ descriptors = {
174
174
  object: this.owner
175
175
  };
176
176
  Object.getNotifier(this.owner).notify(change);
177
+ change = {
178
+ oldValue: associated != null ? associated._id : void 0,
179
+ type: 'update',
180
+ name: association_name + '_id',
181
+ object: this.owner
182
+ };
183
+ Object.getNotifier(this.owner).notify(change);
177
184
  }
178
185
  return associated;
179
186
  }
@@ -350,7 +357,7 @@ associable = {
350
357
  }
351
358
  },
352
359
  create_before_hooks: function(record) {
353
- var association_proxy, definition, old_resource, resource, _i, _len, _ref, _results;
360
+ var association_proxy, definition, old_resource, old_resource_id, resource, _i, _len, _ref, _results;
354
361
 
355
362
  definition = this;
356
363
  if (definition.belongs_to) {
@@ -364,13 +371,14 @@ associable = {
364
371
  owner: record
365
372
  };
366
373
  old_resource = record[resource];
374
+ old_resource_id = record[resource + '_id'];
367
375
  Object.defineProperty(record, resource.toString(), {
368
376
  get: $.proxy(descriptors.belongs_to.resource.getter, association_proxy),
369
377
  set: $.proxy(descriptors.belongs_to.resource.setter, association_proxy),
370
378
  configurable: true
371
379
  });
372
380
  _results.push(record.after_initialize.push((function() {
373
- return this[resource] = old_resource;
381
+ return this[resource] = old_resource || (this[resource + '_id'] = old_resource_id);
374
382
  })));
375
383
  }
376
384
  return _results;
@@ -98,7 +98,7 @@ this.model = (function() {
98
98
  var after_initialize, after_mix, callback, instance, _i, _len, _ref;
99
99
 
100
100
  if (this === window) {
101
- throw 'Model mixin called incorrectly call with model.call {} instead of model({})';
101
+ throw 'Model mixin called incorrectly! \n Call with model.call({}) instead of model({}) \n Also the first argument must be non null.';
102
102
  }
103
103
  if (!mixer.stale) {
104
104
  mixer.stale = true;
@@ -47,7 +47,7 @@ define ->
47
47
  el.on 'click', '.close', (event) =>
48
48
  @emit 'close'
49
49
  @hide()
50
- false
50
+ event.preventDefault()
51
51
 
52
52
  # Positionate modal after widget insertions, when widget starts
53
53
  # visible
@@ -78,7 +78,7 @@ define ->
78
78
 
79
79
  dialog: null
80
80
 
81
- version: '0.1.1'
81
+ version: '0.1.2'
82
82
 
83
83
  options:
84
84
 
@@ -303,7 +303,7 @@ define [
303
303
 
304
304
  # Initialize dependencies
305
305
  # TODO replace with strategy pattern, please!
306
- deferred.done (records) =>
306
+ @fetching = deferred.done (records) =>
307
307
 
308
308
  @load.stop()
309
309
 
data/lib/ende/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ende
2
- VERSION = "0.5.17"
2
+ VERSION = "0.5.18"
3
3
  end