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

View File

@@ -78,7 +78,7 @@ goog.inherits(ol.Image, ol.ImageBase);
* @api
*/
ol.Image.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_) {