m.censor: work around a bunder bug (#2752)
This commit is contained in:
parent
53bedd1102
commit
c8df665bcb
3 changed files with 5 additions and 3 deletions
|
|
@ -1658,7 +1658,8 @@ var compileTemplate = function(template) {
|
|||
// return result2
|
||||
// }
|
||||
// ```
|
||||
var magic = /^(?:key7|oninit|oncreate|onbeforeupdate|onupdate|onbeforeremove|onremove1)$/
|
||||
// Words in RegExp literals are sometimes mangled incorrectly by the internal bundler, so use RegExp().
|
||||
var magic = new RegExp("^(?:key|oninit|oncreate|onbeforeupdate|onupdate|onbeforeremove|onremove)$")
|
||||
var censor = function(attrs4, extras) {
|
||||
var result2 = {}
|
||||
if (extras != null) {
|
||||
|
|
|
|||
2
mithril.min.js
vendored
2
mithril.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -24,7 +24,8 @@
|
|||
// ```
|
||||
|
||||
var hasOwn = require("./hasOwn")
|
||||
var magic = /^(?:key|oninit|oncreate|onbeforeupdate|onupdate|onbeforeremove|onremove)$/
|
||||
// Words in RegExp literals are sometimes mangled incorrectly by the internal bundler, so use RegExp().
|
||||
var magic = new RegExp("^(?:key|oninit|oncreate|onbeforeupdate|onupdate|onbeforeremove|onremove)$")
|
||||
|
||||
module.exports = function(attrs, extras) {
|
||||
var result = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue