ymdp 0.7.7 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ymdp/javascripts/jquery/init.js +26 -4
- data/ymdp.gemspec +1 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0
|
@@ -82,11 +82,31 @@ YMDP.Init.after = function() {
|
|
82
82
|
// overwrite this function locally
|
83
83
|
};
|
84
84
|
|
85
|
+
YMDP.setJSON = function() {
|
86
|
+
try {
|
87
|
+
alert("about to set JSON");
|
88
|
+
if (JSON) {
|
89
|
+
alert("JSON exists");
|
90
|
+
true;
|
91
|
+
}
|
92
|
+
if (YUI) {
|
93
|
+
alert("YUI exists " + YUI);
|
94
|
+
YUI().use('json', function(Y) {
|
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);
|
103
|
+
}
|
104
|
+
};
|
105
|
+
|
85
106
|
// Execute the before, startup and after methods. Do not overwrite. (Change YMDP.Init.startup to create a custom initializer.)
|
86
107
|
YMDP.init = function() {
|
87
|
-
|
88
|
-
|
89
|
-
|
108
|
+
try {
|
109
|
+
YMDP.setJSON(); // must set JSON first because Debug uses it
|
90
110
|
Debug.log("OIB.init for view " + View.name, "<%= @message %>");
|
91
111
|
Logger.init();
|
92
112
|
Tags.init();
|
@@ -97,7 +117,9 @@ YMDP.init = function() {
|
|
97
117
|
I18n.translateError();
|
98
118
|
YMDP.Init.before();
|
99
119
|
YMDP.Init.startup();
|
100
|
-
})
|
120
|
+
} catch(omg) {
|
121
|
+
alert("YMDP.init " + omg.message);
|
122
|
+
}
|
101
123
|
};
|
102
124
|
|
103
125
|
YMDP.Init.browser = function() {
|
data/ymdp.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ymdp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 8
|
9
|
+
- 0
|
10
|
+
version: 0.8.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Isaac Priestley
|