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

client side callbacks do not work with ExtJS #17

Closed
scottburch opened this issue Mar 19, 2011 · 3 comments
Closed

client side callbacks do not work with ExtJS #17

scottburch opened this issue Mar 19, 2011 · 3 comments

Comments

@scottburch
Copy link

loading ext-base will cause callbacks not to be called

@sridatta
Copy link
Contributor

Could you provide some additional information such as errors from the Webkit console or Firebug?

@scottburch
Copy link
Author

this.indexOf is not a function - socket.io.js line 1748

I am going to download the socket stuff and try to determine the cause, but someone more familiar with it might be able to find it quicker.

@ericz
Copy link
Contributor

ericz commented Mar 22, 2011

All of these weird bugs with ExtJS is due to ext-core.js adding to Array.prototype. Subsequently, when you do a for in loop on an array, you traverse through not only the indicies but also you get the remove function added by ext-core.js. The solution is to change your code to check hasOwnProperty in the traversal or convert the loop to a regular for loop if you are certain that it will be an array and not an object. That is definitely a run on sentence. Anyways the NowJS component of this has been fixed. Hopefully similar issues dont crop up in socket.io

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

3 participants