@erickmerchant/framework
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -22,18 +22,16 @@ "use strict"; | ||
render(); | ||
if (!rafCalled) { | ||
rafCalled = true; | ||
raf(render); | ||
} | ||
} | ||
function render() { | ||
if (!rafCalled) { | ||
rafCalled = true; | ||
rafCalled = false; | ||
raf(function () { | ||
rafCalled = false; | ||
var element = component({ state: state, dispatch: dispatch, next: next }); | ||
var element = component({ state: state, dispatch: dispatch, next: next }); | ||
if (element != null) { | ||
diff(target, element); | ||
} | ||
}); | ||
if (element != null) { | ||
diff(target, element); | ||
} | ||
@@ -40,0 +38,0 @@ } |
20
main.js
@@ -14,18 +14,16 @@ module.exports = function ({target, store, component, diff, raf}) { | ||
render() | ||
if (!rafCalled) { | ||
rafCalled = true | ||
raf(render) | ||
} | ||
} | ||
function render () { | ||
if (!rafCalled) { | ||
rafCalled = true | ||
rafCalled = false | ||
raf(() => { | ||
rafCalled = false | ||
const element = component({state, dispatch, next}) | ||
const element = component({state, dispatch, next}) | ||
if (element != null) { | ||
diff(target, element) | ||
} | ||
}) | ||
if (element != null) { | ||
diff(target, element) | ||
} | ||
@@ -32,0 +30,0 @@ } |
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "A simple data down, actions up framework.", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
@@ -74,4 +74,3 @@ const test = require('tape') | ||
}, | ||
diff: function (target, newTarget) { | ||
}, | ||
diff: noop, | ||
raf: function (callback) { | ||
@@ -78,0 +77,0 @@ process.nextTick(function () { callback() }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8670
127