Code Monkey home page Code Monkey logo

flocks.js's Issues

Implement reject

Lock and unlock are cool.

There should be a reject, to throw away all changes since a lock began, to establish full transactionality.

Can't initialize in Chrome

Here's some example code: https://github.com/acrispino/flockstest

Everything works as expected in Firefox. On Chrome, the calling Flocks.create fails:

flocks.jsx:69 Flocks2 [1] Flocks2 root creation begins
flocks.jsx:69 Flocks2 [2]  - Flocks2 engaging auto-context
flocks.jsx:143 Uncaught TypeError: Converting circular structure to JSON

The issue seems to be that the flocks context contains a copy of the config object, which contains a reference to the target element for the root component. In Chrome, this causes the call to JSON.stringify to fail.

Firefox and IE9+ seem to serialize elements as objects without any of the DOM properties. IE8 returns undefined.

commute to global

@glenjamin recommends to move the library off of window into a global, to make referring to it more convenient. I agree, and will do so.

sc-eslint and gulp-strip-react-dom-comment should be devDependencies

sc-eslint and gulp-strip-react-dom-comment don't seem to be necessary to actually run flocks.

This would allow npm users to not install sc-eslint, gulp-strip-react-dom-comment, and their dependencies to use flocks. This probably affects me more than others because I prefer to vendor my node_modules.

Related, I feel that react should be a dependency or peerDependency.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.