From f3dc624fa464a79fd8e8cec1ddd16ed2109bda23 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Fri, 10 Feb 2012 16:05:27 -0800 Subject: Revert "Merge from /joseeight/ninja-internal/tree/FileIO" This reverts commit c48eeb01bd726895dc577d8b843b2a75883eee07. Signed-off-by: Ananya Sen --- .../rich-text-editor.reel/rich-text-sanitizer.js | 132 --------------------- 1 file changed, 132 deletions(-) delete mode 100644 node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js (limited to 'node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js') diff --git a/node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js b/node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js deleted file mode 100644 index 3282d3e6..00000000 --- a/node_modules/labs/rich-text-editor.reel/rich-text-sanitizer.js +++ /dev/null @@ -1,132 +0,0 @@ -/* - This file contains proprietary software owned by Motorola Mobility, Inc.
- No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
- (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. -
*/ -/** - @module "montage/ui/rich-text-sanitizer.js" - @requires montage/core/core -*/ -var Montage = require("montage").Montage; - -/** - @class module:"montage/ui/rich-text-sanitizer.js".Sanitizer - @extends module:montage/core/core.Montage -*/ -exports.Sanitizer = Montage.create(Montage,/** @lends module:"montage/ui/rich-text-sanitizer.js".Sanitizer# */ { - - willSetValue: { - value: function(value, identifier) { - return this._scopeCSS(value, identifier); - } - }, - - didGetValue: { - value: function(value, identifier) { - return this._unscopeCSS(value, identifier); - } - }, - - willInsertHTMLData: { - value: function(data, identifier) { - return this._scopeCSS(this._removeScript(data), identifier); - } - }, - - _scopeCSS: { - enumerable: true, - value: function(htmlFragment, identifier) { - var identifierSelector = ".editor-" + identifier+ " "; - - if (typeof htmlFragment == "string") { - // Extract the style tag and its content - htmlFragment = htmlFragment.replace(/(