Aidan Feldman
Aidan Feldman
Right - I just think this would be less confusing: ``` > platform = ua.device.platform => # > platform.to_s => "iPhone" > platform.type => :apple # not "iphone" - this...
The [example](https://github.com/josephschmitt/Clamp.js/blob/master/examples/example1.html) is broken for this reason, as well.
Ah, so you can define transitions to the same state? Theoretically this works in the StateMachine as-is? ``` javascript showDetail: function(postId){ console.log('visiting ' + postId); } ... routes.trigger('detail', 1); //...
The [part in the README](https://github.com/sebpiq/backbone.statemachine#triggering-transitions) that says ``` event 'hide' while in state 'hidden' -> no transition ``` made it seem like it was _not_ possible.
Gotcha. Not sure if it's a huge deal, but that means ``` javascript showDetail: function(postId){ console.log('incrementing view count'); } ... routes.trigger('detail', 1); // "incrementing view count" routes.trigger('detail', 1); // "incrementing...
Sure - just considering if that should be covered by the StateMachine in a more generalized way.
Well, when you declare routes in Backbone (or Rails) you can make something static (`'/posts'`) or something with a known variable (`'/posts/:id'`). What if the state definitions supported a similar...
I have a file where use of `nbdiff` seems to grow without bound. To reproduce: 1. Download https://github.com/afeld/python-public-policy/blob/129d5150e1796ecde2c947b4694c3430f388c8a1/lecture_3.ipynb 2. Run `nbdiff lecture_3.ipynb lecture_3.ipynb`
Looks good! Needs tests :smirk:
Just learned about a few open source projects that do this: - https://bitf.ly/ - https://file.pizza/ - https://webtorrent.io/