Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

The subscribe magic disappeared #31

Description

@kyo4311
$(document)
    .readyAsObservable()
    .flatMap(function(obj) {
        return $.ajaxAsObservable({
            url: 'cityList',
            dataType: 'jsonp'
        });
    })
    .flatMapLatest(function(res) {
        return res.list; // is Arrary
    })
    .reduce(function(acc, x, idx, source) {
        alert(acc); //has data
        return acc + '<div></div>';
    }, '')
    .subscribe(function(x) {
            alert(x); //Does not perform
        }, function(err) {
            alert(err); //Does not perform
        },
        function() {
            alert('Completed'); //Does not perform
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions