Giter Site home page Giter Site logo

its-framework's Introduction

its-framework

its-framework is a lightweight script that manages state and events for elements. It's heavily inspired by flux and modular pattern design.

its-framework encourages a centralized approach in a modular environment. The global state and event manager unifies just enough to keep the complex operations of a team environment in a centralized location. The core organizing principle is to delegate all events and capture a view and state relationship between elements. By adding its-control or its-view attributes its-framework will keep an ongoing capture/update process on all corresponding elements. its-framework caching structure does not include a virtual DOM but is optimized with efficient array access queries after an initial document scan.

its-framework's People

Contributors

brandonbrule avatar thedrummeraki avatar

Watchers

James Cloos avatar  avatar

Forkers

thedrummeraki

its-framework's Issues

Efficient object state access

Issue
Using string properties to reference objects may not be efficient for elements defining the keypress, keydown and keyup events.

Possible solutions

  • Cache the object properties
  • Look up the object at least once and save it the element (similar to the cache views idea)

Tested on
N/A

Reproduce the issue
This issue may initialized by applying an object property attribute to any element supporting keypress, keydown and keyup events. Add a callback function that prints out when the event is fired.

its-control stops working after adding a dot.

Expected behaviour
Let's say we have two inputs:

<input its-control="1mxdmp">
<input its-control="1mxdmp">

Both inputs will share the same contents.

What happens
Once a dot is typed, the contents are not shared anymore accross inputs.

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.