examples/lib/leap-plugins-0.1.6.js
function (graphicName) {
      if (!this.overlay) return;
      if (this.graphicName == graphicName) return;

      this.graphicName = graphicName;
      switch (graphicName) {
        case 'connect':
          this.overlay.style.display = 'block';
          this.overlay.innerHTML = CONNECT_LEAP_ICON;
          break;
        case 'wave':
          this.overlay.style.display = 'block';
          this.overlay.innerHTML = MOVE_HAND_OVER_LEAP_ICON;
          break;
        case undefined:
          this.overlay.innerHTML = '';
          break;
      }
    }
function (graphicName) {
      if (!this.overlay) return;
      if (this.graphicName == graphicName) return;

      this.graphicName = graphicName;
      switch (graphicName) {
        case 'connect':
          this.overlay.style.display = 'block';
          this.overlay.innerHTML = CONNECT_LEAP_ICON;
          break;
        case 'wave':
          this.overlay.style.display = 'block';
          this.overlay.innerHTML = MOVE_HAND_OVER_LEAP_ICON;
          break;
        case undefined:
          this.overlay.innerHTML = '';
          break;
      }
    }
function ( graphicName ) { if ( ! this . overlay ) return ; if ( this . graphicName == graphicName ) return ; this . graphicName = graphicName ; switch ( graphicName ) { case 'connect' : this . overlay . style . display = 'block' ; this . overlay . innerHTML = CONNECT_LEAP_ICON ; break ; case 'wave' : this . overlay . style . display = 'block' ; this . overlay . innerHTML = MOVE_HAND_OVER_LEAP_ICON ; break ; case undefined : this . overlay . innerHTML = '' ; break ; } }
Accepts either "connect", "wave", or undefined.
Accepts either connect wave or undefined .