src/jquery.eye.js
function() {
      $.each(watched_props, function(index, value) {
        if (index != '_interval' && index != '_interval_func' && index != '_element' && index != '_speed' && index != '_status' && index != '_load') {
          var new_value = value.orig_value;

          // Are we returning a jQuery function value?
          if (index.match(/\)/g)) {
            var j_func = index.replace(/\(\)/g, "");

            // Do we have arguments to pass to the function
            if ($.isPlainObject(value) && 'args' in value.orig_object) {

              // If function is method of jQuery
              if (j_func in $) {
                new_value = $[j_func].apply(j_func, value.orig_object.args);

              // Assume function is method of jQuery.fn
              } else {
                new_value = $.fn[j_func].apply($(plugin.element), value.orig_object.args);
              }
            } else {

              // If function is method of jQuery
              if (j_func in $) {
                new_value = $(plugin.element)[j_func]();

              // Assume function is method of jQuery.fn
              } else {
                new_value = $.fn[j_func].apply($(plugin.element));
              }
            }

          // Are we watching a property of the DOM element
          } else if (index in plugin.element) {
            new_value = plugin.element[index];

          // Are we watching a CSS property?
          } else {
            new_value = plugin.element.style[index];
          }
        }

        // Execute the interval callback when present
        if ($.isPlainObject(value.orig_object)) {
          if ('onInterval' in value.orig_object) {
            value.orig_object.onInterval( value.orig_value, value.elm_ref);
          }
        }

        // When the currently calculated value differs from the original, execute callback
        if (new_value != value.orig_value || plugin._load) {
          if ($.isFunction(value.orig_object)) {
            plugin._load = false;
            value.orig_object( value.orig_value, new_value, value.elm_ref );
          } else if ($.isPlainObject(value.orig_object)) {
            plugin._load = false;
            value.orig_object.onChange( value.orig_value, new_value, value.elm_ref, 'args' in value.orig_object ? value.orig_object.args : [] );
          }

          // Update the original value with the new value
          value.orig_value = new_value;
        }
      });
    }
function() {
      $.each(watched_props, function(index, value) {
        if (index != '_interval' && index != '_interval_func' && index != '_element' && index != '_speed' && index != '_status' && index != '_load') {
          var new_value = value.orig_value;

          // Are we returning a jQuery function value?
          if (index.match(/\)/g)) {
            var j_func = index.replace(/\(\)/g, "");

            // Do we have arguments to pass to the function
            if ($.isPlainObject(value) && 'args' in value.orig_object) {

              // If function is method of jQuery
              if (j_func in $) {
                new_value = $[j_func].apply(j_func, value.orig_object.args);

              // Assume function is method of jQuery.fn
              } else {
                new_value = $.fn[j_func].apply($(plugin.element), value.orig_object.args);
              }
            } else {

              // If function is method of jQuery
              if (j_func in $) {
                new_value = $(plugin.element)[j_func]();

              // Assume function is method of jQuery.fn
              } else {
                new_value = $.fn[j_func].apply($(plugin.element));
              }
            }

          // Are we watching a property of the DOM element
          } else if (index in plugin.element) {
            new_value = plugin.element[index];

          // Are we watching a CSS property?
          } else {
            new_value = plugin.element.style[index];
          }
        }

        // Execute the interval callback when present
        if ($.isPlainObject(value.orig_object)) {
          if ('onInterval' in value.orig_object) {
            value.orig_object.onInterval( value.orig_value, value.elm_ref);
          }
        }

        // When the currently calculated value differs from the original, execute callback
        if (new_value != value.orig_value || plugin._load) {
          if ($.isFunction(value.orig_object)) {
            plugin._load = false;
            value.orig_object( value.orig_value, new_value, value.elm_ref );
          } else if ($.isPlainObject(value.orig_object)) {
            plugin._load = false;
            value.orig_object.onChange( value.orig_value, new_value, value.elm_ref, 'args' in value.orig_object ? value.orig_object.args : [] );
          }

          // Update the original value with the new value
          value.orig_value = new_value;
        }
      });
    }
function ( ) { $ . each ( watched_props , function ( index , value ) { if ( index != '_interval' && index != '_interval_func' && index != '_element' && index != '_speed' && index != '_status' && index != '_load' ) { var new_value = value . orig_value ; // Are we returning a jQuery function value?
 if ( index . match ( / \) / g ) ) { var j_func = index . replace ( / \(\) / g , "" ) ; // Do we have arguments to pass to the function
 if ( $ . isPlainObject ( value ) && 'args' in value . orig_object ) { // If function is method of jQuery
 if ( j_func in $ ) { new_value = $ [ j_func ] . apply ( j_func , value . orig_object . args ) ; // Assume function is method of jQuery.fn
 } else { new_value = $ . fn [ j_func ] . apply ( $ ( plugin . element ) , value . orig_object . args ) ; } } else { // If function is method of jQuery
 if ( j_func in $ ) { new_value = $ ( plugin . element ) [ j_func ] ( ) ; // Assume function is method of jQuery.fn
 } else { new_value = $ . fn [ j_func ] . apply ( $ ( plugin . element ) ) ; } } // Are we watching a property of the DOM element
 } else if ( index in plugin . element ) { new_value = plugin . element [ index ] ; // Are we watching a CSS property?
 } else { new_value = plugin . element . style [ index ] ; } } // Execute the interval callback when present
 if ( $ . isPlainObject ( value . orig_object ) ) { if ( 'onInterval' in value . orig_object ) { value . orig_object . onInterval ( value . orig_value , value . elm_ref ) ; } } // When the currently calculated value differs from the original, execute callback
 if ( new_value != value . orig_value || plugin . _load ) { if ( $ . isFunction ( value . orig_object ) ) { plugin . _load = false ; value . orig_object ( value . orig_value , new_value , value . elm_ref ) ; } else if ( $ . isPlainObject ( value . orig_object ) ) { plugin . _load = false ; value . orig_object . onChange ( value . orig_value , new_value , value . elm_ref , 'args' in value . orig_object ? value . orig_object . args : [ ] ) ; } // Update the original value with the new value
 value . orig_value = new_value ; } } ) ; }
Reference the interval function
Reference the interval function