More information about the Underscore mailing list

[_] jquery - calling a function within a ready() callback - from a plugin

juan kennaugh contact at jkennaugh.co.uk
Tue Sep 27 15:09:11 BST 2011

Good idea - I'll take a look.

Cheers

Juan


On 27/09/2011 14:55, Tom Holder wrote:
> You should probably question why you are calling an external function from
> within the plugin.
>
> You'd be better using a callback for the plugin or you will find your plugin
> becomes very tightly coupled.
>
> http://stackoverflow.com/questions/2534436/jquery-plugin-adding-callback-functionality
>
> Tom
>
>
> On 27 September 2011 14:30, juan kennaugh<contact at jkennaugh.co.uk>  wrote:
>
>> Hi all
>>
>> another jquery question for you...
>>
>> I have a function within my ready() callback which I want to call from
>> within a plugin.
>>
>> Obviously the plugin doesn;t have access to the scope within the ready()
>> callback - so got any ideas how it could be done?
>>
>> Cheers
>>
>> Juan
>>
>> --
>> underscore_ list info/archive ->  http://www.under-score.org.uk/**
>> mailman/listinfo/underscore<http://www.under-score.org.uk/mailman/listinfo/underscore>
>>