Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

herb-foliage

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

herb-foliage - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

12

foliage-dom.js

@@ -89,8 +89,10 @@ (function(){

return {
attach:function (elements, index) {
elementsToUpdate = elements;
indexToUpdate = index;
elements[index] = factory(initial)(result);
element: {
attach:function (elements, index) {
elementsToUpdate = elements;
indexToUpdate = index;
elements[index] = factory(initial)(result);
}
},
__next: function(next) {
next: function(next) {
elementsToUpdate[indexToUpdate] = factory(next)(result);

@@ -97,0 +99,0 @@ }

@@ -15,17 +15,20 @@ (function(){

dynamic:function(elementFactory, initial) {
var component;
var result = react.createElement(react.createClass({
getInitialState : function (){
return initial;},
render: function(){
component = this;
return elementFactory(this.state)(factory);
}
}));
result.__proto__.__next = function(state){
if(component){
component.setState(state);
}
};
return result;
return (function(){
var component;
var result = {}
result.element = react.createElement(react.createClass({
getInitialState : function (){
return initial;},
render: function(){
component = this;
return elementFactory(this.state)(factory);
}
}));
result.next = function(state){
if(component){
component.setState(state);
}
};
return result
})();
}

@@ -32,0 +35,0 @@ };

{
"name": "herb-foliage",
"version": "0.0.1",
"version": "0.0.2",
"description": "A DSL to write HTML to a DOM",

@@ -5,0 +5,0 @@ "main":"foliage.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc