|
|
@@ -101,7 +101,10 @@ function bindEvent(ele, opt) {
|
|
|
//plugin.call(code);
|
|
|
//alert($(this).attr("hitCode"));
|
|
|
var sHCode = $(this).attr("shcode");
|
|
|
- if (sHCode == 1) {
|
|
|
+ if (sHCode != undefined && sHCode==1) {
|
|
|
+ test($(this).attr("hitCode"));
|
|
|
+ }
|
|
|
+ else if (sHCode == undefined) {
|
|
|
test($(this).attr("hitCode"));
|
|
|
}
|
|
|
}
|
|
|
@@ -114,7 +117,10 @@ function bindEvent(ele, opt) {
|
|
|
//plugin.call(code);
|
|
|
//alert($(this).attr("hitCode"));
|
|
|
var sHCode = $(this).attr("shcode");
|
|
|
- if (sHCode == 1) {
|
|
|
+ if (sHCode != undefined && sHCode == 1) {
|
|
|
+ test($(this).attr("hitCode"));
|
|
|
+ }
|
|
|
+ else if (sHCode == undefined) {
|
|
|
test($(this).attr("hitCode"));
|
|
|
}
|
|
|
}
|
|
|
@@ -127,7 +133,10 @@ function bindEvent(ele, opt) {
|
|
|
//plugin.call(code);
|
|
|
//alert($(this).attr("hitCode"));
|
|
|
var sHCode = $(this).attr("shcode");
|
|
|
- if (sHCode == 1) {
|
|
|
+ if (sHCode != undefined && sHCode == 1) {
|
|
|
+ test($(this).attr("hitCode"));
|
|
|
+ }
|
|
|
+ else if (sHCode == undefined) {
|
|
|
test($(this).attr("hitCode"));
|
|
|
}
|
|
|
}
|
|
|
@@ -137,8 +146,11 @@ function bindEvent(ele, opt) {
|
|
|
//plugin.call(code);
|
|
|
//alert($(this).attr("hitCode"));
|
|
|
var sHCode = $(this).attr("shcode");
|
|
|
- if (sHCode == 1) {
|
|
|
- test($(this).next().attr("hitCode"));
|
|
|
+ if (sHCode != undefined && sHCode == 1) {
|
|
|
+ test($(this).attr("hitCode"));
|
|
|
+ }
|
|
|
+ else if (sHCode == undefined) {
|
|
|
+ test($(this).attr("hitCode"));
|
|
|
}
|
|
|
}
|
|
|
});
|