Fix typecast

Fix JSC_MISPLACED_TYPE_ANNOTATION warnings with the plovr 2013 release
candidate (http://plovr.com/plovr-2013-rc.jar)
This commit is contained in:
Frederic Junod
2013-03-14 10:16:50 +01:00
parent 1d002dd4ae
commit bce9e9d0de
2 changed files with 5 additions and 5 deletions

View File

@@ -133,7 +133,7 @@ ol.structs.RTreeNode_.prototype.divide = function() {
goog.object.extend(this.types, node.types);
this.children.push(node);
}
child.parent = /** @type {ol.structs.RTreeNode_} */ node;
child.parent = /** @type {ol.structs.RTreeNode_} */ (node);
goog.object.extend(node.types, child.types);
node.children.push(child);
node.extend(child);
@@ -164,7 +164,7 @@ ol.structs.RTree = function() {
* @return {Object.<string, Object>} Results for the passed bounding box.
*/
ol.structs.RTree.prototype.find = function(bounds, opt_type) {
var results = /** @type {Object.<string, Object>} */ {};
var results = /** @type {Object.<string, Object>} */ ({});
this.root_.find(bounds, results, opt_type);
return results;
};