Skip to content

Commit

Permalink
有人报 for in 有问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wind108369 committed May 20, 2015
1 parent a725244 commit 332f676
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extension/BMap/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ define(function (require) {
*
* @type {BMap.Map}
* @private
*/
*/
BMapExt.prototype._map = null;

/**
Expand Down Expand Up @@ -67,7 +67,7 @@ define(function (require) {
* @param {BMap} BMap
* @param {echarts} ec
* @private
*/
*/
BMapExt.prototype._init = function (obj, BMap, ec, mapOption) {
var self = this;
self._map = obj.constructor == BMap.Map ? obj : new BMap.Map(obj, mapOption);
Expand Down Expand Up @@ -187,15 +187,15 @@ define(function (require) {
if (markType == 'markPoint') {
var data = markData.data;
if (data && data.length) {
for (var k in data) {
for (var k = 0, len = data.length; k < len; k++) {
self._AddPos(data[k]);
}
}
}
else {
data = markData.data;
if (data && data.length) {
for (var k in data) {
for (var k = 0, len = data.length; k < len; k++) {
self._AddPos(data[k][0]);
self._AddPos(data[k][1]);
}
Expand Down Expand Up @@ -254,14 +254,14 @@ define(function (require) {

var data = markPoint.data;
if (data && data.length) {
for (var k in data) {
for (var k = 0, len = data.length; k < len; k++) {
self._AddPos(data[k]);
}
}

data = markLine.data;
if (data && data.length) {
for (var k in data) {
for (var k = 0, len = data.length; k < len; k++) {
self._AddPos(data[k][0]);
self._AddPos(data[k][1]);
}
Expand Down

0 comments on commit 332f676

Please sign in to comment.