refactor redraw into pubsub and autoredraw
- pubsub is a basic pubsub impl - autoredraw is glue code to register callback to pubsub and onevent moved e.redraw to autoredraw
This commit is contained in:
parent
db46bb4414
commit
0005cf26ee
13 changed files with 149 additions and 105 deletions
|
|
@ -81,12 +81,4 @@ o.spec("throttle", function() {
|
|||
|
||||
o(spy.callCount).equals(2)
|
||||
})
|
||||
|
||||
o("it supports aborting when redraw is falsey", function() {
|
||||
throttled({ redraw : false })
|
||||
throttled({ redraw : 0 })
|
||||
throttled({ redraw : "" })
|
||||
|
||||
o(spy.callCount).equals(0)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue