@@ -280,7 +280,7 @@ jQuery(function($, undefined) {
280280 . append ( this . _filterScripts ( html ) )
281281 . prepend ( this . header )
282282 . append ( this . footer )
283- . wrapInner ( '<div class=" nyroModal' + ucfirst ( this . loadFilter ) + '" />' ) ;
283+ . wrapInner ( $ ( '<div />' , { ' class' : ' nyroModal'+ ucfirst ( this . loadFilter ) } ) ) ;
284284
285285 // Store the size of the element
286286 this . sizes . initW = this . sizes . w = this . elts . hidden . width ( ) ;
@@ -547,7 +547,7 @@ jQuery(function($, undefined) {
547547 } ,
548548
549549 nmManual : function ( url , opts ) {
550- $ ( '<a href="' + url + '"></a>' ) . nyroModal ( opts ) . trigger ( 'nyroModal' ) ;
550+ $ ( '<a />' , { href : url } ) . nyroModal ( opts ) . trigger ( 'nyroModal' ) ;
551551 } ,
552552 nmData : function ( data , opts ) {
553553 this . nmManual ( '#' , $ . extend ( { data : data } , opts ) ) ;
@@ -589,7 +589,7 @@ jQuery(function($, undefined) {
589589 nm . opener
590590 . off ( 'nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal' )
591591 . on ( {
592- 'nyroModal.nyroModal' : function ( e ) { nm . open ( ) ; return false ; } ,
592+ 'nyroModal.nyroModal' : function ( ) { nm . open ( ) ; return false ; } ,
593593 'nmClose.nyroModal' : function ( ) { nm . close ( ) ; return false ; } ,
594594 'nmResize.nyroModal' : function ( ) { nm . resize ( ) ; return false ; }
595595 } ) ;
0 commit comments