X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_source%2Fcore%2Ftools.js;h=a1bff9af0da81409fca280cd54ae3a24aff4b923;hb=e371ddf8abcb89013e20e6d0dd746adec344d0e5;hp=6fb417b8ed66fd956aa0123cb31eb01c515df9c5;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/tools.js b/_source/core/tools.js index 6fb417b..a1bff9a 100644 --- a/_source/core/tools.js +++ b/_source/core/tools.js @@ -12,6 +12,11 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { var functions = []; + CKEDITOR.on( 'reset', function() + { + functions = []; + }); + /** * Utility functions. * @namespace @@ -215,6 +220,10 @@ For licensing, see LICENSE.html or http://ckeditor.com/license return ( !!object && object instanceof Array ); }, + /** + * Whether the object contains no properties of it's own. + * @param object + */ isEmpty : function ( object ) { for ( var i in object ) @@ -224,6 +233,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } return true; }, + /** * Transforms a CSS property name to its relative DOM style name. * @param {String} cssName The CSS property name. @@ -255,7 +265,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } )(), /** - * Build the HTML snippet of a set of