MDL-21503 eliminating global Y

This commit is contained in:
Petr Skoda
2010-02-03 09:32:02 +00:00
parent 76418c143b
commit 384ab39a62
5 changed files with 6 additions and 13 deletions

View File

@@ -158,7 +158,8 @@ M.util.CollapsibleRegion.prototype.icon = null;
//=== old legacy JS code, hopefully to be replaced soon by M.xx.yy and YUI3 code ===
function launch_filemanager(options) {
Y.use('core_filemanager', function() {
// TODO: move to M.form_filemanager.init()
YUI(M.yui.loader).use('core_filemanager', function(Y) {
var client_id = options.client_id;
// filemangers defined in lib/form/filemanager.js
if (!filemanagers[client_id]) {
@@ -1213,14 +1214,6 @@ function stripHTML(str) {
return ret;
}
function json_decode(json) {
return Y.JSON.parse(json);
}
function json_encode(data) {
return Y.JSON.stringify(data);
}
/**
* Finds all help icons on the page and initiates YUI tooltips for
* each of them, which load a truncated version of the help's content