Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 't/10864' into major
  • Loading branch information
Reinmar committed Oct 14, 2013
2 parents 0ddd5f0 + 63dc037 commit 4bafac0
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions plugins/widget/plugin.js
Expand Up @@ -199,8 +199,6 @@
// Create prototyped copy of original widget definition, so we won't modify it.
widgetDef = CKEDITOR.tools.prototypedCopy( widgetDef );
widgetDef.name = name;
widgetDef.repository = this;
widgetDef.definition = widgetDef;

widgetDef._ = widgetDef._ || {};

Expand Down Expand Up @@ -756,6 +754,22 @@
*/
focusedEditable: null,

/**
* The widget definition from which this instance was created.
*
* @readonly
* @property {CKEDITOR.plugins.widget.definition} definition
*/
definition: widgetDef,

/**
* Link to the widget repository which created this instance.
*
* @readonly
* @property {CKEDITOR.plugins.widget.repository} repository
*/
repository: widgetsRepo,

// WAAARNING: Overwrite widgetDef's priv object, because otherwise violent unicorn's gonna visit you.
_: {
downcastFn: ( widgetDef.downcast && typeof widgetDef.downcast == 'string' ) ?
Expand All @@ -773,20 +787,6 @@
* @property {Object} parts
*/

/**
* The widget definition from which this instance was created.
*
* @readonly
* @property {CKEDITOR.plugins.widget.definition} definition
*/

/**
* Link to the widget repository which created this instance.
*
* @readonly
* @property {CKEDITOR.plugins.widget.repository} repository
*/

/**
* The template which will be used to create a new widget element (when the widget's command is executed).
* It will be populated with {@link #defaults default values}.
Expand Down

0 comments on commit 4bafac0

Please sign in to comment.