Skip to content

Commit

Permalink
remove compat: escape modifier
Browse files Browse the repository at this point in the history
Removed the `escape` modifier available in the templates.
Please use `escapeforhtml` modifier instead.

(deprecated in 1.5.3 via GH-1099)
  • Loading branch information
jakub-g committed Jan 8, 2015
1 parent d2512c9 commit 155bde2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 58 deletions.
24 changes: 0 additions & 24 deletions src/aria/templates/Modifiers.js
Expand Up @@ -38,27 +38,6 @@ var ariaUtilsArray = require("../utils/Array");
return "";
}
},
/* BACKWARD-COMPATIBILITY-BEGIN (deprecate escape modifier) */
"escape" : {
/**
* Initialization function called when the template is parsed
* @param {aria.templates.ClassWriter} out
*/
init : function (out) {
out.addDependencies(["aria.utils.String"]);
},
/**
* <span style="font-weight: bold">MODIFIER</span> <br/> Escape < > & in the given entry.
* @name aria.templates.Modifiers.prototype.escape
* @param {String} str the entry
* @return {String}
*/
fn : function (s) {
this.$logWarn(aria.templates.Modifiers.DEPRECATED_ESCAPE_MODIFIER);
return ariaUtilsString.escapeHTML(String(s));
}
},
/* BACKWARD-COMPATIBILITY-END (deprecate escape modifier) */
"escapeforhtml" : {
/**
* Initialization function called when the template is parsed
Expand Down Expand Up @@ -385,9 +364,6 @@ var ariaUtilsArray = require("../utils/Array");
},
$statics : {
UNKNOWN_MODIFIER : "Unknown modifier %1.",
/* BACKWARD-COMPATIBILITY-BEGIN (deprecate escape modifier) */
DEPRECATED_ESCAPE_MODIFIER : "Escape modifier is deprecated, please use escapeforhtml modifier instead",
/* BACKWARD-COMPATIBILITY-END (deprecate escape modifier) */
DATEFORMAT_MODIFIER_ENTRY : "Entry %1 is not a date."
},
$prototype : {
Expand Down
3 changes: 0 additions & 3 deletions test/aria/templates/TemplatesTestSuite.js
Expand Up @@ -105,9 +105,6 @@ Aria.classDefinition({
this.addTests("test.aria.templates.reloadParentTemplate.ParentReloadTestSuite");

this.addTests("test.aria.templates.layoutResize.ResizeTestCase");
/* BACKWARD-COMPATIBILITY-BEGIN (deprecate escape modifier) */
this.addTests("test.aria.templates.escapemodifier.EscapeModifierLogTest");
/* BACKWARD-COMPATIBILITY-END (deprecate escape modifier) */

}
});
31 changes: 0 additions & 31 deletions test/aria/templates/escapemodifier/EscapeModifierLogTest.js

This file was deleted.

0 comments on commit 155bde2

Please sign in to comment.