Add m.censor, adjust m.route.Link to use it (#2538)
Also, restructure a few things for better code reuse.
This commit is contained in:
parent
3fa1630f91
commit
34f4363357
15 changed files with 488 additions and 55 deletions
10
util/assign.js
Normal file
10
util/assign.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// This exists so I'm only saving it once.
|
||||
"use strict"
|
||||
|
||||
var hasOwn = require("./hasOwn")
|
||||
|
||||
module.exports = Object.assign || function(target, source) {
|
||||
for (var key in source) {
|
||||
if (hasOwn.call(source, key)) target[key] = source[key]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue