diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-19 23:08:11 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-10-20 10:17:18 +0200 |
commit | f7ca3ec2012b0790a78cb83b7f2f07aef0445905 (patch) | |
tree | 35e7e9fdaf98662f7d36a04d12165c8673d4d547 /core/js/octemplate.js | |
parent | f7f271154702883367f418c4f9e35418ab4219ef (diff) | |
download | nextcloud-server-f7ca3ec2012b0790a78cb83b7f2f07aef0445905.tar.gz nextcloud-server-f7ca3ec2012b0790a78cb83b7f2f07aef0445905.zip |
Remove unneeded compatibility polyfills
- `Object.create` supported with IE9+: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/create#Browser_compatibility
- `Object.keys` supported with IE9+: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/keys#Browser_compatibility
- `Array.prototype.filter` supported in IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter#Browser_compatibility
- `Array.prototype.indexOf` supported in IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf#Browser_compatibility
- `Array.prototype.map` supported in IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#Browser_compatibility
- `Function.prototype.bind` supported in IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind#Browser_compatibility
- `String.prototype.trim` supported with IE9+: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Browser_compatibility
- `outerHTML` supported with Firefox 11+: https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML#Browser_compatibility
- `window.devicePixelRatio` supported in IE11+: http://caniuse.com/#feat=devicepixelratio
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js/octemplate.js')
-rw-r--r-- | core/js/octemplate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/octemplate.js b/core/js/octemplate.js index 67aa7d69cce..b24ad95c2b0 100644 --- a/core/js/octemplate.js +++ b/core/js/octemplate.js @@ -76,7 +76,7 @@ }, // From stackoverflow.com/questions/1408289/best-way-to-do-variable-interpolation-in-javascript _build: function(o){ - var data = this.elem.attr('type') === 'text/template' ? this.elem.html() : outerHTML(this.elem.get(0)); + var data = this.elem.attr('type') === 'text/template' ? this.elem.html() : this.elem.get(0).outerHTML; try { return data.replace(/{([^{}]*)}/g, function (a, b) { |