nl_tokens: Return the nearest ancestor that is an instance of the provided class .
pl_tokens: function ( klass ) { Ember . deprecate ( "nearestInstanceOf is deprecated and will be removed from future releases. Use nearestOfType." ) ; var view = get ( this , 'parentView' ) ; while ( view ) { if ( view instanceof klass ) { return view ; } <mask> = get ( view , 'parentView' ) ; } }