Inline simple goog.isDef() checks

This commit is contained in:
Tim Schaub
2015-09-27 10:18:44 -06:00
parent cf5eadebaa
commit 7659e47e07
22 changed files with 59 additions and 59 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ ol.ImageTile.prototype.disposeInternal = function() {
* @api
*/
ol.ImageTile.prototype.getImage = function(opt_context) {
if (goog.isDef(opt_context)) {
if (opt_context !== undefined) {
var image;
var key = goog.getUid(opt_context);
if (key in this.imageByContext_) {