Canjs not working in default android browser. #681

Closed
inderps opened this Issue Jan 19, 2014 · 2 comments

Comments

Projects
None yet
3 participants
@inderps

inderps commented Jan 19, 2014

I have created a webapp using canjs 2.0.4 and jquery 2.0.3. It works fine in chrome and other browsers. But when i run it in default android browser. It fails during can.route.ready() call

And it says undefined method 'apply' for object at line 6968 i.e.
here

if (typeof method === "function") {
   return method.apply(binding, args)
} else {
   return method;
}

in can.jquery.js

please someone look into this matter

Because of this whole routing fails, hence my webapp is not working at all

I'm wrapping my app into phonegap which internally using android default browser

@ghost ghost assigned andykant Jan 23, 2014

@andykant

This comment has been minimized.

Show comment
Hide comment
@andykant

andykant Jan 23, 2014

Contributor

What version of Android are you testing against?
Can you provide more detail about the code around the can.route.ready() call?

The tests currently pass when I'm running it against Android 4.1 with jQuery 2.0.3.

Contributor

andykant commented Jan 23, 2014

What version of Android are you testing against?
Can you provide more detail about the code around the can.route.ready() call?

The tests currently pass when I'm running it against Android 4.1 with jQuery 2.0.3.

@inderps

This comment has been minimized.

Show comment
Hide comment
@inderps

inderps Jan 24, 2014

Hey,

I tried it on android 4.0.3 (Ice Cream Sandwich) and it didnt work.
It works fine for jelly bean (4.1).

inderps commented Jan 24, 2014

Hey,

I tried it on android 4.0.3 (Ice Cream Sandwich) and it didnt work.
It works fine for jelly bean (4.1).

@daffl daffl added this to the 2.0.6 milestone Feb 17, 2014

@ccummings ccummings closed this in #787 Mar 14, 2014

ccummings added a commit that referenced this issue Mar 14, 2014

Merge pull request #787 from bitovi/681-android-can-route-error
Changing typeof check to a check for apply (#681)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment