Author: knopp
Date: Sat Jan 12 13:30:12 2008
New Revision: 611486

URL: http://svn.apache.org/viewvc?rev=611486&view=rev
Log:
WICKET-1249

Modified:
    
wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js

Modified: 
wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
URL: 
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js?rev=611486&r1=611485&r2=611486&view=diff
==============================================================================
--- 
wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
 (original)
+++ 
wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js
 Sat Jan 12 13:30:12 2008
@@ -23,24 +23,29 @@
 
 /**
  * In case wicket-ajax.js is not yet loaded, create 
- * Class.create function and Wicket namespace. 
+ * Wicket namespace and Wicket.Class.create. 
  */  
-if (typeof(Class) == "undefined") {
-       var Class = {
+if (typeof(Wicket) == "undefined") {
+       Wicket = { };
+}
+
+
+if (Wicket.Class == null) {
+       Wicket.Class = {
                create: function() {
                        return function() {
                                this.initialize.apply(this, arguments);
                        }
                }
-       }
+       };
 }
 
-if (typeof(Wicket) == "undefined")
-       Wicket = { };
-
+if (Wicket.Object == null) {
+       Wicket.Object = { };
+}
 
-if (typeof(Object.extend) == "undefined") {
-       Object.extend = function(destination, source) {
+if (Wicket.Object.extend == null) {
+       Wicket.Object.extend = function(destination, source) {
                for (property in source) {
                        destination[property] = source[property];
                }
@@ -185,7 +190,7 @@
  * Draggable (and optionally resizable) window that can either hold a div
  * or an iframe. 
  */
-Wicket.Window = Class.create();
+Wicket.Window = Wicket.Class.create();
 
 /**
  * Display confirmation dialog if the user is about to leave a page (IE and 
FF).
@@ -271,7 +276,7 @@
        initialize: function(settings) {
                                
                // override default settings with user settings
-               this.settings = Object.extend({
+               this.settings = Wicket.Object.extend({
                        
                        minWidth: 200,  /* valid only if resizable */
                        minHeight: 150, /* valid only if resizable */
@@ -1145,7 +1150,7 @@
  * Transparent or semi-transparent masks that prevents user from interacting
  * with the portion of page behind a window.  
  */
-Wicket.Window.Mask = Class.create();
+Wicket.Window.Mask = Wicket.Class.create();
 
 Wicket.Window.Mask.zIndex = 20000;
 


Reply via email to