Giter VIP home page Giter VIP logo

arbiter-subpub's People

Contributors

taylor1791 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

arbiter-subpub's Issues

ignoring persisted messages

Currently one test is disabled because it fails and I believe the code should work based on arbiterjs.com in the "Ignore persisted messages" section. Currently spy is executed unless I make { persist: true } on the line 5. If this is the expected behavior, then the docs should be updated. Can @matt-kruse verify one way or the other?

1 it( 'allows late subscribers to ignore persisted message', function() {
2   var spy = jasmine.createSpy();
3
4   this.arbiter.publish( 'msg', null, { persist: true } );
5   this.arbiter.subscribe( 'msg', { persist: false }, spy );
6
7   expect( spy ).not.toHaveBeenCalled();
8} );

jsHint or JSCS is linting library (fusioncharts)

In my gulp file line 76:
browser: [ 'app//*.js', '!app/lib//.js', '!app/__/.test.js' ]
This will exclude fusionchart from linting. But I lost it when I run the build task --- cyclops-crush.

If I remove the the library from this line:
browser: [ 'app//*.js', '!app//*.test.js' ]
It will be included when I ran cyclops-crush, but jsHint or JSCS is also linting the library, which makes the application extremely slow.

priority between wildcard and normal subscrip

failing test

var
  spy1 = jasmine.createSpy().and.callFake( function() {
    expect( spy2 ).not.toHaveBeenCalled();
  } ),
  spy2 = jasmine.createSpy();

this.arbiter.subscribe( 'msg/*', { priority: 1 }, spy1 );
this.arbiter.subscribe( 'msg/name', spy2 );
this.arbiter.publish( 'msg/name' );

expect( spy1 ).toHaveBeenCalled();
expect( spy2 ).toHaveBeenCalled();

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.