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 +4 -4
- data/component.json +1 -1
- data/components/indefinido/indemma/master/component.json +1 -1
- data/components/indefinido/indemma/master/lib/record/associable.js +10 -2
- data/components/indefinido/indemma/master/lib/record.js +1 -1
- data/lib/assets/javascripts/widgets/dialog/main.js.coffee +2 -2
- data/lib/assets/javascripts/widgets/viewer/main.js.coffee +1 -1
- data/lib/ende/version.rb +1 -1
- data/vendor/assets/components/ende_build.js +2896 -2889
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e2d278108dc2a3e703ef721655dea264b4a9f08
|
4
|
+
data.tar.gz: 89e276412958298d8c2b8c88f47791bba799c93d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f581d39499e76aab57c4818ba8bf6d5c0e13b33b8c855f64d32b7057d5a47890286fd84aae3ca7b04c9d46283d5328a256c39be1adf5fe8ca660e08e08bd97bc
|
7
|
+
data.tar.gz: 79d5a36c48a129578e8f2eeb3e88e75153616e69ba1934823fba853661ac20af28b50158c8dd58c7d73fbcfd7785a65b252ec65573420c032ec18e4c7fcfe898
|
data/component.json
CHANGED
@@ -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
|
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
|
-
|
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.
|
81
|
+
version: '0.1.2'
|
82
82
|
|
83
83
|
options:
|
84
84
|
|
data/lib/ende/version.rb
CHANGED