function(name, value) {
			if (arguments.length == 2) {
				this._data[name] = value;
				
				if (name == 'resource' && require('elements').is(value, 'snippet')) {
					// setting snippet as matched resource: update `content`
					// property with snippet value
					this.content = value.data;
					if (this._text) {
						this.content = require('abbreviationUtils')
							.insertChildContent(value.data, this._text);
					}
				}
			}
			
			return this._data[name];
		}
function(name, value) {
			if (arguments.length == 2) {
				this._data[name] = value;
				
				if (name == 'resource' && require('elements').is(value, 'snippet')) {
					
					
					this.content = value.data;
					if (this._text) {
						this.content = require('abbreviationUtils')
							.insertChildContent(value.data, this._text);
					}
				}
			}
			
			return this._data[name];
		}
function ( name , value ) { if ( arguments . length == 2 ) { this . _data [ name ] = value ; if ( name == 'resource' && require ( 'elements' ) . is ( value , 'snippet' ) ) { // setting snippet as matched resource: update `content` // property with snippet value this . content = value . data ; if ( this . _text ) { this . content = require ( 'abbreviationUtils' ) . insertChildContent ( value . data , this . _text ) ; } } } return this . _data [ name ] ; }
Sets/gets custom data
@param {String} name
@param {Object} value
@returns {Object}
Sets / gets custom data