Skip to content

Commit

Permalink
Whoops, render target was hardwired to document.body (fixes #52)
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Mar 30, 2015
1 parent 7358b1f commit c3dd3bb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flocks.js",
"version": "1.0.1",
"version": "1.0.2",
"dependencies": {
"closure-compiler": "http://dl.google.com/closure-compiler/compiler-latest.zip"
}
Expand Down
4 changes: 2 additions & 2 deletions dist/flocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if (typeof React === "undefined") {
prevFCtx = nextFCtx;

flocksLog(3, " - Flocks2 update passed");
React.render( React.createFactory(tagtype)( { "flocks2context" : nextFCtx } ), document.body );
React.render( React.createFactory(tagtype)( { "flocks2context" : nextFCtx } ), prevFCtx.flocks2Config.target );
dirty = false;

flocksLog(3, " - Flocks2 update complete; finalizing");
Expand Down Expand Up @@ -540,7 +540,7 @@ if (typeof React === "undefined") {
* @type {String}
*/

"version" : "1.0.1",
"version" : "1.0.2",



Expand Down
18 changes: 9 additions & 9 deletions dist/flocks.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/flocks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if (typeof React === "undefined") {
prevFCtx = nextFCtx;

flocksLog(3, " - Flocks2 update passed");
React.render( React.createFactory(tagtype)( { "flocks2context" : nextFCtx } ), document.body );
React.render( React.createFactory(tagtype)( { "flocks2context" : nextFCtx } ), prevFCtx.flocks2Config.target );
dirty = false;

flocksLog(3, " - Flocks2 update complete; finalizing");
Expand Down Expand Up @@ -540,7 +540,7 @@ if (typeof React === "undefined") {
* @type {String}
*/

"version" : "1.0.1",
"version" : "1.0.2",



Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "flocks.js",
"filename": "flocks.js",
"description": "Simpler state management for React.js",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "http://flocks.rocks/",
"repository": {
"url": "https://github.com/StoneCypher/flocks.js.git"
Expand Down

0 comments on commit c3dd3bb

Please sign in to comment.