fixed unterminated JS statements

This commit is contained in:
Petr Skoda 2010-09-18 10:37:19 +00:00
parent 42d121d7ba
commit d306751695
5 changed files with 23 additions and 23 deletions

View file

@ -19,7 +19,7 @@ M.form.initShowAdvanced = function(Y, config) {
}
var showAdvanced = function(config) {
showAdvanced.superclass.constructor.apply(this, arguments);
}
};
showAdvanced.prototype = {
_advButtons : [],
_advAreas : [],
@ -48,14 +48,14 @@ M.form.initShowAdvanced = function(Y, config) {
this._advAreas.removeClass('hide');
}
}
}
};
// Extend it with the YUI widget fw.
Y.extend(showAdvanced, Y.Base, showAdvanced.prototype, {
NAME : 'mform-showAdvanced'
})
});
M.form.showAdvanced = new showAdvanced(config);
return M.form.showAdvanced;
}
};
/**
* Initialises a manager for a forms dependencies.
@ -84,7 +84,7 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
M.form.dependencyManager = M.form.dependencyManager || (function(){
var dependencyManager = function(config) {
dependencyManager.superclass.constructor.apply(this, arguments);
}
};
dependencyManager.prototype = {
_form : null,
_depElements : [],
@ -138,7 +138,7 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
if (this.getAttribute('name') == name) {
elements.push(this);
}
})
});
this._nameCollections[name] = new Y.NodeList(elements);
}
return this._nameCollections[name];
@ -146,7 +146,7 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
/**
* Checks the dependencies the form has an makes any changes to the
* form that are required.
*
*
* Changes are made by functions title _dependency_{dependencytype}
* and more can easily be introduced by defining further functions.
*/
@ -292,13 +292,13 @@ M.form.initFormDependencies = function(Y, formid, dependencies) {
hide : false
}
}
}
};
Y.extend(dependencyManager, Y.Base, dependencyManager.prototype, {
NAME : 'mform-dependency-manager'
});
return dependencyManager;
})();
return new M.form.dependencyManager();
}
};