Authored by yyq

fix foreach

This diff could not be displayed because it is too large.
1 { 1 {
2 "name": "yoho-activity-sdk", 2 "name": "yoho-activity-sdk",
3 - "version": "1.1.0", 3 + "version": "1.1.1",
4 "description": "YOHO!前端js的功能封装包,主要用于在活动页面中,对主要功能的封装。", 4 "description": "YOHO!前端js的功能封装包,主要用于在活动页面中,对主要功能的封装。",
5 "keywords": [ 5 "keywords": [
6 "YOHO!", 6 "YOHO!",
@@ -23,7 +23,7 @@ function login(obj) { @@ -23,7 +23,7 @@ function login(obj) {
23 23
24 _this.auth = function (nodeList, user) { 24 _this.auth = function (nodeList, user) {
25 if (!user.uid) { 25 if (!user.uid) {
26 - nodeList.forEach(function (value) { 26 + [].forEach.call(nodeList, function(value) {
27 value.onclick = function (event) { 27 value.onclick = function (event) {
28 event.preventDefault(); 28 event.preventDefault();
29 _this.goLogin(); 29 _this.goLogin();