Fixing bug with IconLiteral#equals and adding tests

This commit is contained in:
Tim Schaub
2013-07-12 10:17:08 -06:00
parent 2e08ccce03
commit 8844465188
2 changed files with 164 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ goog.inherits(ol.style.IconLiteral, ol.style.PointLiteral);
* @inheritDoc
*/
ol.style.IconLiteral.prototype.equals = function(iconLiteral) {
return this.url == iconLiteral.type &&
return this.url == iconLiteral.url &&
this.width == iconLiteral.width &&
this.height == iconLiteral.height &&
this.opacity == iconLiteral.opacity &&