Fix resize event issue by avoiding adjust viewport meta multiple times

This commit is contained in:
pandamicro
2016-04-06 00:16:20 +08:00
parent 9246063540
commit 4a5a57eb61
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -30,7 +30,8 @@ var JS = require('../platform/js');
* LoadingItems is the manager of items in pipeline.
* It hold a map of items, each entry in the map is a url to object key value pair.
* Each item always contains the following property:
* - src: The url
* - id: The identification of the item, usually it's identical to url
* - url: The url
* - type: The type, it's the extension name of the url by default, could be specified manually too
* - error: The error happened in pipeline will be stored in this property
* - content: The content processed by the pipeline, the final result will also be stored in this property
+1
View File
@@ -330,6 +330,7 @@ var View = cc._Class.extend({
_adjustViewportMeta: function () {
if (this._isAdjustViewPort) {
this._setViewportMeta(__BrowserGetter.meta, false);
this._isAdjustViewPort = false;
}
},