Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "staballoy", | ||
"description": "Reactive Library for binding data to UI elements in Titanium Alloy", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "staballoy.js", | ||
@@ -6,0 +6,0 @@ "keywords": ["titanium","reactive","titanium-module"], |
@@ -155,2 +155,3 @@ # Staballoy | ||
## Changelog | ||
- **1.1.1** - (20210212) Arrays no longer merge, but they overwrite | ||
- **1.1.0** - (20210205) Added ability to add a dataTransform to subscription | ||
@@ -157,0 +158,0 @@ - **1.0.4** - (20210128) Fixed property search when property value was falsy |
/** | ||
* Staballoy is created by Rene Pot (2021) | ||
* Version 1.1.0 -- 2021-02-05 | ||
* Version 1.1.1 -- 2021-02-12 | ||
* The latest version can be found at Github: https://github.com/topener/staballoy | ||
@@ -144,3 +144,4 @@ * Or npmjs: https://www.npmjs.com/package/staballoy | ||
exports.set = function(newData) { | ||
data = deepmerge(data, newData); | ||
const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray | ||
data = deepmerge(data, newData, { arrayMerge: overwriteMerge }); | ||
Ti.App.Properties.setObject('Staballoy.DataSub', data); | ||
@@ -147,0 +148,0 @@ handleChange(); |
Sorry, the diff of this file is not supported yet
15024
158
168