All pastes #637639 Raw Edit

just some javascript

public javascript v1 · immutable
#637639 ·published 2007-07-29 02:31 UTC
rendered paste body
if (typeof(MochiKit) !=  'undefined'){   connect(window, 'onload', function () {              /* startup */           });}var Class = {   /* class constructor object */  create: function() {    return function() {       if ('__init__' in this)          this.__init__.apply(this, arguments);    }  }}Slide = Class.create();Slide.prototype = {   /* Model of a slide */   __init__: function (element)   {      var m = MochiKit.Base;      var new_element = m.clone(element);      m.updatetree(this, new_element);      swapDOM(element, this);   }}