ymdp 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/ymdp/javascripts/jquery/init.js +20 -32
- data/ymdp.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.1
|
@@ -83,43 +83,31 @@ YMDP.Init.after = function() {
|
|
83
83
|
};
|
84
84
|
|
85
85
|
YMDP.setJSON = function() {
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
return window.JSON = Y.JSON;
|
96
|
-
});
|
97
|
-
} else if (YAHOO.lang) {
|
98
|
-
alert("YAHOO.lang exists " + YAHOO.lang);
|
99
|
-
window.JSON = YAHOO.lang.JSON;
|
100
|
-
}
|
101
|
-
} catch (omg) {
|
102
|
-
alert(omg.message);
|
86
|
+
if (JSON) {
|
87
|
+
return true;
|
88
|
+
}
|
89
|
+
if (YUI) {
|
90
|
+
YUI().use('json', function(Y) {
|
91
|
+
return window.JSON = Y.JSON;
|
92
|
+
});
|
93
|
+
} else if (YAHOO.lang) {
|
94
|
+
window.JSON = YAHOO.lang.JSON;
|
103
95
|
}
|
104
96
|
};
|
105
97
|
|
106
98
|
// Execute the before, startup and after methods. Do not overwrite. (Change YMDP.Init.startup to create a custom initializer.)
|
107
99
|
YMDP.init = function() {
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
YMDP.Init.startup();
|
120
|
-
} catch(omg) {
|
121
|
-
alert("YMDP.init " + omg.message);
|
122
|
-
}
|
100
|
+
YMDP.setJSON(); // must set JSON first because Debug uses it
|
101
|
+
Debug.log("OIB.init for view " + View.name, "<%= @message %>");
|
102
|
+
Logger.init();
|
103
|
+
Tags.init();
|
104
|
+
YMDP.Init.browser();
|
105
|
+
YMDP.Init.resources();
|
106
|
+
I18n.addLanguageToBody();
|
107
|
+
I18n.translateLoading();
|
108
|
+
I18n.translateError();
|
109
|
+
YMDP.Init.before();
|
110
|
+
YMDP.Init.startup();
|
123
111
|
};
|
124
112
|
|
125
113
|
YMDP.Init.browser = function() {
|
data/ymdp.gemspec
CHANGED
metadata
CHANGED