From 7242c5e36a856473470a37257f47387c7d6b51ec Mon Sep 17 00:00:00 2001 From: RubyLouvre Date: Mon, 24 Nov 2014 12:36:07 +0800 Subject: [PATCH] fix msData --- avalon.js | 2 +- avalon.modern.js | 2 +- examples/avalon.shim.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/avalon.js b/avalon.js index b734bd885..44ee2875f 100644 --- a/avalon.js +++ b/avalon.js @@ -2178,7 +2178,7 @@ var param = match[2] || "" var value = attr.value var name = attr.name - msData[name] = value + msData[name.replace(/(\-[$\w]+)/g,"")] = value if (events[type]) { param = type type = "on" diff --git a/avalon.modern.js b/avalon.modern.js index da9008cf9..a0bf712a1 100644 --- a/avalon.modern.js +++ b/avalon.modern.js @@ -1621,7 +1621,7 @@ var param = match[2] || "" var value = attr.value var name = attr.name - msData[name] = value + msData[name.replace(/(\-[$\w]+)/g,"")] = value if (events[type]) { param = type type = "on" diff --git a/examples/avalon.shim.js b/examples/avalon.shim.js index db45c9aac..1d77dd06e 100644 --- a/examples/avalon.shim.js +++ b/examples/avalon.shim.js @@ -2169,7 +2169,7 @@ var param = match[2] || "" var value = attr.value var name = attr.name - msData[name] = value + msData[name.replace(/(\-[$\w]+)/g,"")] = value if (events[type]) { param = type type = "on"