#1264 Uninitialized trait method

Mở
%! (template.HTML=2 năm trước cách đây)đang mở bởi max · 0 ý kiến
max đã nhận xét 2 năm trước cách đây

Executing

| deferred |
deferred := JQuery current Deferred new.
[deferred resolve: 'ok'] valueWithTimeout: 1000.
deferred promise then: []

raises the error: nil does not understand #applyTo:arguments:

This is due to the TThenable>>#then: not being initialized, that is instantiateFn not being used to set method.fn.

It seems to be related to commit d8ba5d3b0f

The example uses a jquery deferred, but the problem is common to other thenables.

Executing ``` | deferred | deferred := JQuery current Deferred new. [deferred resolve: 'ok'] valueWithTimeout: 1000. deferred promise then: [] ``` raises the error: nil does not understand #applyTo:arguments: This is due to the TThenable>>#then: not being initialized, that is instantiateFn not being used to set method.fn. It seems to be related to commit d8ba5d3b0fbc277816b6ada3a284285332b63055 The example uses a jquery deferred, but the problem is common to other thenables.
Đăng nhập để tham gia bình luận.
Không có nhãn
Không có Milestone
Không có người được phân công
1 tham gia
Đang tải...
Hủy bỏ
Lưu
Ở đây vẫn chưa có nội dung nào.