This commit is contained in:
Qiang Xue
2013-05-01 07:51:28 -04:00
parent 4e9dc9812e
commit 8114316587
5 changed files with 367 additions and 26 deletions

View File

@ -7,10 +7,24 @@
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
;(function($) {
$.yii = {
version : '2.0'
yii = (function ($) {
var pub = {
version: '2.0'
};
return pub;
})(jQuery);
jQuery(document).ready(function ($) {
// call the init() method of every module
var init = function (module) {
if ($.isFunction(module.init) && (module.trigger == undefined || $(module.trigger).length)) {
module.init();
}
$.each(module, function () {
if ($.isPlainObject(this)) {
init(this);
}
});
};
init(yii);
});