[Jifty-commit] r5254 - in jifty/branches/jquery: .

Jifty commits jifty-commit at lists.jifty.org
Wed Apr 2 05:16:55 EDT 2008


Author: sartak
Date: Wed Apr  2 05:16:53 2008
New Revision: 5254

Modified:
   jifty/branches/jquery/   (props changed)
   jifty/branches/jquery/share/web/static/js/jifty.js

Log:
 r53262 at onn:  sartak | 2008-04-02 05:12:29 -0400
 jquery and trunk solved a problem (running JS loaded on-the-fly from the server) in different ways, going with jquery for now, though the method used by trunk looks cleaner


Modified: jifty/branches/jquery/share/web/static/js/jifty.js
==============================================================================
--- jifty/branches/jquery/share/web/static/js/jifty.js	(original)
+++ jifty/branches/jquery/share/web/static/js/jifty.js	Wed Apr  2 05:16:53 2008
@@ -1037,29 +1037,6 @@
                 Behaviour.apply(element);
             }
             new_dom_args.set(fragment_bit.getAttribute("name"), textContent);
-        },
-      content: function(fragment_bit) {
-            var textContent = '';
-            if (fragment_bit.textContent) {
-                textContent = fragment_bit.textContent;
-            } else if (fragment_bit.firstChild) {
-                textContent = fragment_bit.firstChild.nodeValue;
-            }
-                    
-            // Once we find it, do the insertion
-            if (f['mode'] && (f['mode'] != 'Replace')) {
-                var insertion = eval('Insertion.'+f['mode']);
-                new insertion(element, textContent.stripScripts());
-                element = document.getElementById('region-' + f['region']);
-            } else {
-                Element.update(element, textContent.stripScripts());
-            }
-            // We need to give the browser some "settle" time before
-            // we eval scripts in the body
-            YAHOO.util.Event.onAvailable(element.id, function() {
-                (function() { this.evalScripts() }).bind(textContent)();
-            });
-            Behaviour.apply(element);
         }
     );
     dom_fragment.setArgs(new_dom_args);


More information about the Jifty-commit mailing list