bem / bem-history Goto Github PK
View Code? Open in Web Editor NEWBEM wrap for History API
Home Page: https://bem.info/libs/bem-history/
License: Other
BEM wrap for History API
Home Page: https://bem.info/libs/bem-history/
License: Other
What you think about releasing v2 branch under version 2.0?
What we need to do before that?
It's like 32 commits after v1.2.
> $.url.getBasePage('http://example.com/');
"http://example.com/"
> $.url.getBasePage('http://example.com/#!/search?q=test');
"http:/"
Expected same results.
Readme.md > Scheme of library work > a > bem-history workflow
Ссылка битая или схема не нарисована?
What about adding?:
typeof console !== 'undefined' && console.error && console.error('location.assign fallback', e);
also, we may be have to check error type
> $.url.isValid('http://my.example.com/')
true
> $.url.isValid('http://m.example.com/')
false
The problem in this regexp: https://github.com/bem/bem-history/blob/master/common.blocks/i-jquery/__url/i-jquery__url.js#L16.
Если у домена указан порт, то на строчке
// Push the newState
history[method](newState.id, newState.title, newState.url);
Выбрасывает эксепшн: Uncaught Error: SecurityError: DOM Exception 18
Содержимое newState.url на момент ошибки:
. newState: Object
. data: Object
. hash: "/radio"
. id: "137569613390805398990337271243"
. normalized: true
. title: ""
. url: "http://site.com/foo"
В то время как домен site.com:8002 — кроссдоменность получается.
В описании блока на сайте bem-info есть пример установки порта u.setPort(80);
, но в примере ответа u.toString();
порт остается 8080.
Is it possible to use bem-history whith bem-core v4?
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.