Remove use of goog.crypt
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
goog.provide('ol.style.Stroke');
|
||||
|
||||
goog.require('goog.crypt');
|
||||
goog.require('goog.crypt.Md5');
|
||||
goog.require('ol.color');
|
||||
|
||||
|
||||
@@ -207,7 +205,7 @@ ol.style.Stroke.prototype.setWidth = function(width) {
|
||||
*/
|
||||
ol.style.Stroke.prototype.getChecksum = function() {
|
||||
if (this.checksum_ === undefined) {
|
||||
var raw = 's' +
|
||||
this.checksum_ = 's' +
|
||||
(this.color_ ?
|
||||
ol.color.asString(this.color_) : '-') + ',' +
|
||||
(this.lineCap_ !== undefined ?
|
||||
@@ -220,10 +218,6 @@ ol.style.Stroke.prototype.getChecksum = function() {
|
||||
this.miterLimit_.toString() : '-') + ',' +
|
||||
(this.width_ !== undefined ?
|
||||
this.width_.toString() : '-');
|
||||
|
||||
var md5 = new goog.crypt.Md5();
|
||||
md5.update(raw);
|
||||
this.checksum_ = goog.crypt.byteArrayToString(md5.digest());
|
||||
}
|
||||
|
||||
return this.checksum_;
|
||||
|
||||
Reference in New Issue
Block a user