intanpalupidn / jquery-oembed

Automatically exported from code.google.com/p/jquery-oembed
0 stars 0 forks source link

onProviderNotFound not being called with unsupported provider #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you call .oembed(url) with a url that is not of a supported provider, such 
as http://www.amazon.com/, $.fn.oembed.getOEmbedProvider(resourceURL) should 
return null but it does not, and therefore, settings.onProviderNotFound is not 
called.

Original issue reported on code.google.com by Andrew.A...@gmail.com on 17 Mar 2012 at 7:02

GoogleCodeExporter commented 8 years ago
Ok, it looks like this happened because greedy mode was enabled. This thing 
needs some documentation!

Original comment by Andrew.A...@gmail.com on 17 Mar 2012 at 7:35