topical media & game development

talk show tell print

graphic-canvas-util-pixastic-pixastic-jquery.js / js



  
  if (typeof jQuery != "undefined" && jQuery && jQuery.fn) {
          jQuery.fn.pixastic = function(action, options) {
                  var newElements = [];
                  this.each(
                          function () {
                                  if (this.tagName == "IMG" && !this.complete) {
                                          return;
                                  }
                                  var res = Pixastic.process(this, action, options);
                                  if (res) {
                                          newElements.push(res);
                                  }
                          }
                  );
                  if (newElements.length > 0)
                          return jQuery(newElements);
                  else
                          return this;
          };
  
  };
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.