0.2.33 • Published 7 years ago

qure v0.2.33

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

QureJS

For examples in browser, check out these demo files

Node examples can be found here

Tiny javascript library, enabling codeflow like this

Qure
    .run(function() {
        // save variable to "this"
        this.a = 1;
    })
    .wait(500)
    .then(function() {
        // executed after 500 milliseconds after previous call
        console.log(this.a); // '1'
    })

It is also possible to "fork" the timeline...which enables multiple queueing/chaining, independent of each other.

Qure
    .wait(200)
    .then(function() {
        // executed after 200 milliseconds
        console.log(1);
    });

Qure
    .fork()
    .wait(250).then(function() {
        // executed after 250 milliseconds (50 ms after previous call)
        console.log(2);
    })

To-do's

  • Templating example
  • Example connect to DefiantJS
  • Declare 'sequence' ?
  • Add 'settings' method - debug purpose
  • Add 'watch' method ?
  • Add 'begin' method ?
  • Metaphorical support for Confirm & Prompt ?
  • Wait for 'Qure' instance
  • Save sequence for replay ?
  • built-in support for rest-API ?

Testing

  • Handle response handlers better (node XHR)
  • Load-method & XDomainRequest in Node environment
  • autoparse xhr response
0.2.33

7 years ago

0.2.32

7 years ago

0.2.31

7 years ago

0.2.30

7 years ago

0.2.29

7 years ago

0.2.28

7 years ago

0.2.25

7 years ago

0.2.24

7 years ago

0.2.23

7 years ago

0.2.22

7 years ago

0.2.21

7 years ago

0.2.20

7 years ago

0.2.19

8 years ago

0.2.18

8 years ago

0.2.17

8 years ago

0.2.16

8 years ago

0.2.14

10 years ago

0.1.9

10 years ago