lib/js/PageView.js
function(isDirty) {
      var t = this;

      // Pause a tour if the page turns dirty
      if (isDirty) {
        UI.pauseTour();
      }

      // Change the view elements
      t.$el.toggleClass('dirty', isDirty);
      if (!isDirty) {
        t.originalPage = t.model.toJSON({trim:false});
      }
    }
function(isDirty) {
      var t = this;

      // Pause a tour if the page turns dirty
      if (isDirty) {
        UI.pauseTour();
      }

      // Change the view elements
      t.$el.toggleClass('dirty', isDirty);
      if (!isDirty) {
        t.originalPage = t.model.toJSON({trim:false});
      }
    }
function ( isDirty ) { var t = this ; // Pause a tour if the page turns dirty if ( isDirty ) { UI . pauseTour ( ) ; } // Change the view elements t . $el . toggleClass ( 'dirty' , isDirty ) ; if ( ! isDirty ) { t . originalPage = t . model . toJSON ( { trim : false } ) ; } }
Set the page as dirty or not
Set the page as dirty or not