Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_bindings is empty although signal is added #69

Open
Teflo opened this issue Feb 27, 2016 · 1 comment
Open

_bindings is empty although signal is added #69

Teflo opened this issue Feb 27, 2016 · 1 comment

Comments

@Teflo
Copy link

Teflo commented Feb 27, 2016

I really don't know why, but I can't dispatch any signals anymore because it says there are no bindings, although they're denfinitly there. Look at this screenshot:
image
You can see self and this is not referring to the same object. While this._bindings.length is 1, self._bindings.length is 0, so it doesn't call anything.

It worked for me before, so I don't know what I made wrong. I clearly think the problem is on my side, but I don't get why this behaviour comes up.

My binding looks like this:
if(!ng.Templates[name].loaded) { ng.Templates[name].onLoaded.add(function(template) { //this code is never called template.create(); }); ng.Templates[name].load(); }

@thesunlover
Copy link

its normal "this" to refer to window in your case. you are not binding the function to "self"
you'd better check your repo-history

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants