Skip to content

Getting TypeError: currentFrame.callback is not a function #30

@roscopeeco

Description

@roscopeeco

Hello

I'm getting the error below when using the library on my page.

Line 347:
currentFrame.callback(subscribable, subscribable._id || (subscribable._id = getId()));

I am using knockout 3.3 (get the error in 3.2 as well) with the ko.mapping and ko.postbox libraries.

Apart from loading the script all i am doing is including the line:

ko.computed.deferUpdates = false;

immediately after the script and then defering updates on an observable arrary further down the line , loading some data and then taking off defered updares again.

self.items.data.deferUpdates = false;

...load some data into self.items.data

self.items.data.deferUpdates = true;

the defered updates to self.items.data seem to be working but the error is preventing other ko page elements working.

thanks

Ross

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions