diff --git a/examples/Jugl.js b/examples/Jugl.js index 38014ef346..4f81a275cb 100644 --- a/examples/Jugl.js +++ b/examples/Jugl.js @@ -1,84 +1,8 @@ -/** +/* * Jugl.js -- JavaScript Template Library * - * Copyright 2007 Tim Schaub - * Released under the MIT license. Please see - * http://svn.tschaub.net/jugl/trunk/license.txt for the full license. + * Copyright 2007-2010 Tim Schaub + * Released under the MIT license. Please see + * http://github.com/tschaub/jugl/blob/master/license.txt for the full license. */ - -(function(){var Jugl={prefix:"jugl",namespaceURI:"http://namespace.jugl.org/"};Jugl.Array={indexOf:function(array,obj){for(var i=0;i=200&&l.status<300);if(n){try{m=l.responseXML;k=new e(m.documentElement)}catch(j){m=document.createElement("div");m.innerHTML=l.responseText;k=new e(m.firstChild)}if(h.callback){h.callback.call(h.scope,k)}}else{if(h.failure){h.failure.call(h.scope,l)}}};d(h.url,i)}};var g=function(h,j){h=h||{};j=j||{};for(var i in j){h[i]=j[i]}return h};var a=function(l,o){var m,n,k,j,h;if(typeof(l)==="string"){m=document.getElementById(l);if(!m){throw Error("Element id not found: "+l)}l=m}if(typeof(o)==="string"){m=document.getElementById(o);if(!m){throw Error("Element id not found: "+o)}o=m}if(o.namespaceURI&&o.xml){n=document.createElement("div");n.innerHTML=o.xml;k=n.childNodes;for(j=0,h=k.length;j