stanlemon/jGrowl

jquery text as 'render'

Closed this issue · 5 comments

When you provide 'render' as the text for jQuery, it fails with some weird errors some times. Looks like the render is a keyword somewhere in the framework and it thinks it's a method or something like that but the bug does exist.
image

image

It is nuGet:
image

As you see the call, with 'render', throws then exception shown in the screen shot.

@patrikx3 Can you get me some code I can work with to test?

$.jGrowl('render');

The text 'render' is a function name on the jGrowl instance, so because of this when you call $.jGrowl('render') it's actually directly calling the render method on the instance rather than sending the text to create a message. To get around this if you need to send a message 'render' do this instead... $.jGrowl('create', [message,options]) where message and options are the the parameters you would normally pass to $.jGrowl().