Merge pull request #1 from Baiqiang/master

Format code
Merge pull request #2 from Baiqiang/master

修复am.base.each方法针对对象和数组遍历时的差异性行为
add domready to event modules
add domready to event module
修复type模块部分判断在iframe中失效的问题
fix #4 修复dom对象判断失效的问题