Library: Document that, when using requirejs, a page should only be instantiated after the whole library is loaded, otherwise it may fail to instantiate some widgets
@gabrielschulhof đang làm issue này rồi.
Từ ngày 14/10/2014.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
We need to provide an example of a scenario where somebody uses the library using requirejs, and maybe skips init altogether. For example,
require([
"jqm/widgets/popup",
"jqm/widgets/listview",
"jqm/widgets/page" ], function() {
$( function() {
$( "#start-page" ).page();
});
};
Will not work if requirejs loads page after it has loaded popup and listview. We need to document that, in 1.4.x, one needs to require page before requiring any of the widgets:
require([
"jqm/widgets/page" ], function() {
require([
"jqm/widgets/popup",
"jqm/widgets/listview" ] ,function() {
$( function() {
$( "#start-page" ).page();
});
});
});
- Ngôn ngữ chính
- HTML
- Star
- 55
- Fork
- 57
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của jquery/api.jquerymobile.com
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jquery/api.jquerymobile.com#387 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
jquery/api.jquerymobile.com#312 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
jquery/api.jquerymobile.com#253 · 2 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
jquery/api.jquerymobile.com#210 ·
-
Printable documentationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
jquery/api.jquerymobile.com#430 · 1 bình luận ·