Skip to content
Browse files
Fix stack feature when not enabled. Closes #6
  • Loading branch information
nyroDev committed Jan 9, 2011
1 parent 8552847 commit d6d14e59ffe0320204a03d9c72c563a3bc44959e
Showing 1 changed file with 2 additions and 0 deletions.
@@ -196,6 +196,8 @@ jQuery(function($, undefined) {

// Init HTML elements
_initElts: function() {
if (!this.stack && this.getInternal().stack.length > 1)
this.elts = $(_internal.stack[_internal.stack.length-2]).data('nmObj').elts;

This comment has been minimized.

Copy link

fadyay Feb 5, 2011

Can you please explain more this line of code.
I had a problem when having the internal stack length bigger than 1 which is equivalent to clicking inside a modal an ajax link more than once.
The problem in firebug was stating: "$(_internal.stack[_internal.stack.length - 2]).data("nmObj") is undefined"

This comment has been minimized.

Copy link

joshcutler Mar 15, 2011

I have had similar issues. They popped up for me when I tried to call .nyroModal() on a form in my modal window.

if (!this.elts.all || this.elts.all.closest('body').length == 0)
this.elts.all = = this.elts.cont = this.elts.hidden = this.elts.load = undefined;
if (!this.elts.all)

0 comments on commit d6d14e5

Please sign in to comment.