From 7e301da2b47eb9a07ca664595e63a367755d25ff Mon Sep 17 00:00:00 2001 From: Sylvain Doignon Date: Mon, 1 Aug 2016 14:20:09 +0200 Subject: [PATCH] Do not update readonly fields --- way.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/way.js b/way.js index f79fdde..1fc088d 100644 --- a/way.js +++ b/way.js @@ -243,6 +243,9 @@ var self = this, element = element || self._element, options = options || self.dom(element).getOptions(); + + if(w.dom(element).attr("readonly") !== null) + return options.transform = options.transform || []; options.transform.forEach(function(transformName) {