losandes / gidget Goto Github PK
View Code? Open in Web Editor NEWA Domain Service Language (DSL) for JavaScript SPAs and Node.js servers inspired by NancyFx and Sinatra
License: MIT License
A Domain Service Language (DSL) for JavaScript SPAs and Node.js servers inspired by NancyFx and Sinatra
License: MIT License
returns error Uncaught TypeError: Cannot read property 'data' of null
When clicking on a mailto
link, the following error gets returned Uncaught TypeError: Cannot read property 'concat' of undefined
The error happens when clicking on empty space within the anchor but not when clicking on an element inside of the anchor.
<a data-bind="attr:{ href: emailMailtoLink }">
<i class="icon icon_envelope envelope" title="Email User"/></i>
</a>
When calling router.redirect, the route that is redirecting should not be stored in history, as it breaks the back button. The easiest way to do this would be to:
router.get
instead of router.navigate
so we don't put an additional entry in the historyCurrently, if a user uses an anchor instead of a button, and either omits the href
or uses javascript:void(0)
, gidget throws an error. Omitting the href isn't valid HTML, so I'm not sure we should do anything about that, but void(0)
is valid. Try to ignore the route action when it is empty, or when both javascript:
and void(
are present in the href.
I think it's a race condition when a route immediate navigates to another, the prior route may end up being the final state.
Right now we ignore any anchor that sets the target, but we should bind to it if the target is self.
So JSON data objects can be forwarded to appropriate endpoints.
It appears not to be working with the other pipeline features.
We either (a) shouldn't process these, or (b) should respect the target setting.
I saw this happen when an email address was passed in as a parameter (i.e. /users/:email
).
This is breaking the route matching.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.