Comparing version 0.7.1 to 0.7.2
/** | ||
* brahmos - 0.7.1 | ||
* brahmos - 0.7.2 | ||
* Author : s-yadav <sudhanshuyadav2@gmail.com> | ||
@@ -1301,3 +1301,4 @@ * Copyright (c) 2016, 2019 to s-yadav <sudhanshuyadav2@gmail.com>, released under the MIT license. | ||
/** | ||
* This method removes all the unused brahmos node till the given index | ||
* This method removes all the unused brahmos node till it finds a | ||
* brahmos node on oldNodes at given index. | ||
* and returns the used/non brahmos node at that index | ||
@@ -1342,2 +1343,4 @@ */ | ||
var node = nodes[i]; | ||
//delete unused non brahmos node | ||
var oldNode = spliceUnusedNodes(i, oldNodes, parentNode, lastChild); | ||
@@ -1536,2 +1539,10 @@ /** | ||
/** | ||
* When setState is called batch all the state changes | ||
* and call rerender asynchronously as next microTask. | ||
* | ||
* If the the newState is function pass the current | ||
* uncommitted state to it and then merge the new state | ||
* with uncommitted state. | ||
*/ | ||
var state = this.__unCommittedState || this.state || {}; | ||
@@ -1545,2 +1556,3 @@ var _newState = typeof newState === 'function' | ||
// when the rerender is done call the callback if provided | ||
this.__batchStateChange().then(function () { | ||
@@ -1547,0 +1559,0 @@ if (callback) { callback(this$1.state); } |
{ | ||
"name": "brahmos", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Super charged UI library with modern React API and native templates.", | ||
@@ -5,0 +5,0 @@ "main": "dist/brahmos.js", |
@@ -56,3 +56,3 @@ <p align="center"> | ||
It will be transpiled to | ||
It will be transformed to | ||
```js | ||
@@ -94,2 +94,5 @@ class TodoList extends Component { | ||
## How it works? | ||
Check how it internally works [HOW_IT_WORKS.md](docs/HOW_IT_WORKS.md) | ||
## Demo | ||
@@ -96,0 +99,0 @@ Todo MVC with Brahmos |
Sorry, the diff of this file is not supported yet
515927
4881
121