@@ -522,7 +522,7 @@ jQuery(function($, undefined) {
522522 if ( _internal . firstInit ) {
523523 _internal . _container = $ ( '<div />' ) . appendTo ( $b ) ;
524524 $w . smartresize ( $ . proxy ( _internal . _resize , _internal ) ) ;
525- $d . bind ( 'keydown.nyroModal' , $ . proxy ( _internal . _keyHandler , _internal ) ) ;
525+ $d . on ( 'keydown.nyroModal' , $ . proxy ( _internal . _keyHandler , _internal ) ) ;
526526 _internal . _calculateFullSize ( ) ;
527527 _internal . firstInit = false ;
528528 }
@@ -587,8 +587,8 @@ jQuery(function($, undefined) {
587587 nm . _callFilters ( 'initFilters' ) ;
588588 nm . _callFilters ( 'init' ) ;
589589 nm . opener
590- . unbind ( 'nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal' )
591- . bind ( {
590+ . off ( 'nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal' )
591+ . on ( {
592592 'nyroModal.nyroModal' : function ( e ) { nm . open ( ) ; return false ; } ,
593593 'nmClose.nyroModal' : function ( ) { nm . close ( ) ; return false ; } ,
594594 'nmResize.nyroModal' : function ( ) { nm . resize ( ) ; return false ; }
@@ -791,7 +791,7 @@ jQuery(function($, undefined) {
791791 initElts : function ( nm ) {
792792 nm . elts . bg . addClass ( 'nyroModalBg' ) ;
793793 if ( nm . closeOnClick )
794- nm . elts . bg . unbind ( 'click.nyroModal' ) . bind ( 'click.nyroModal' , function ( e ) {
794+ nm . elts . bg . off ( 'click.nyroModal' ) . on ( 'click.nyroModal' , function ( e ) {
795795 e . preventDefault ( ) ;
796796 nm . close ( ) ;
797797 } ) ;
@@ -810,7 +810,7 @@ jQuery(function($, undefined) {
810810 var cur = $ ( this ) ;
811811 cur . nyroModal ( nm . getForNewLinks ( cur ) , true ) ;
812812 } ) . end ( )
813- . find ( '.nyroModalClose' ) . bind ( 'click.nyroModal' , function ( e ) {
813+ . find ( '.nyroModalClose' ) . on ( 'click.nyroModal' , function ( e ) {
814814 e . preventDefault ( ) ;
815815 nm . close ( ) ;
816816 } ) ;
@@ -880,7 +880,7 @@ jQuery(function($, undefined) {
880880 } ;
881881 } ;
882882 // smartresize
883- jQuery . fn [ sr ] = function ( fn ) { return fn ? this . bind ( 'resize' , debounce ( fn ) ) : this . trigger ( sr ) ; } ;
883+ jQuery . fn [ sr ] = function ( fn ) { return fn ? this . on ( 'resize' , debounce ( fn ) ) : this . trigger ( sr ) ; } ;
884884
885885} ) ( jQuery , 'smartresize' ) ;
886886// ucFirst
0 commit comments