Skip to content

Commit

Permalink
Merge pull request #1809 from nextcloud/drop-compatibility.js
Browse files Browse the repository at this point in the history
Remove unneeded compatibility polyfills
  • Loading branch information
MorrisJobke committed Oct 20, 2016
2 parents f7f2711 + f7ca3ec commit 19b69cb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 158 deletions.
155 changes: 0 additions & 155 deletions core/js/compatibility.js

This file was deleted.

1 change: 0 additions & 1 deletion core/js/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"placeholder.js"
],
"modules": [
"compatibility.js",
"jquery.ocdialog.js",
"oc-dialogs.js",
"js.js",
Expand Down
2 changes: 1 addition & 1 deletion core/js/octemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion lib/private/legacy/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ public static function initTemplateEngine($renderAs) {
OC_Util::addScript("oc-dialogs", null, true);
OC_Util::addScript("jquery.ocdialog", null, true);
OC_Util::addStyle("jquery.ocdialog");
OC_Util::addScript("compatibility", null, true);
OC_Util::addScript('files/fileinfo');
OC_Util::addScript('files/client');

Expand Down

0 comments on commit 19b69cb

Please sign in to comment.