File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1216
1216
function _removeHintTooltip ( ) {
1217
1217
var tooltip = this . _targetElement . querySelector ( '.introjs-hintReference' ) ;
1218
1218
1219
-
1220
1219
if ( tooltip ) {
1221
1220
var step = tooltip . getAttribute ( 'data-step' ) ;
1222
1221
tooltip . parentNode . removeChild ( tooltip ) ;
1320
1319
}
1321
1320
} ;
1322
1321
1322
+ /**
1323
+ * Hide all hints
1324
+ *
1325
+ * @api private
1326
+ * @method _hideHints
1327
+ */
1328
+ function _hideHints ( ) {
1329
+ var hints = this . _targetElement . querySelectorAll ( '.introjs-hint' ) ;
1330
+
1331
+ if ( hints && hints . length > 0 ) {
1332
+ for ( var i = 0 ; i < hints . length ; i ++ ) {
1333
+ _hideHint . call ( this , hints [ i ] . getAttribute ( 'data-step' ) ) ;
1334
+ }
1335
+ }
1336
+ } ;
1337
+
1323
1338
/**
1324
1339
* Add all available hints to the page
1325
1340
*
1714
1729
hideHint : function ( stepId ) {
1715
1730
_hideHint . call ( this , stepId ) ;
1716
1731
return this ;
1732
+ } ,
1733
+ hideHints : function ( ) {
1734
+ _hideHints . call ( this ) ;
1735
+ return this ;
1717
1736
}
1718
1737
} ;
1719
1738
You can’t perform that action at this time.
0 commit comments