/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

goog.provide('org.apache.flex.events.Event');

goog.require('goog.events.Event');



/**
 * @constructor
 * @extends {goog.events.Event}
 * @param {string} type The event type.
 */
org.apache.flex.events.Event = function(type) {
  goog.base(this, type);

  this.type = type;
};
goog.inherits(org.apache.flex.events.Event,
    goog.events.Event);


/**
 * @expose
 * @this {org.apache.flex.events.Event}
 * @param {string} type The event type.
 */
org.apache.flex.events.Event.prototype.init = function(type) {
  this.type = type;
};


/**
 * @expose
 * @type {string} type The event type.
 */
org.apache.flex.events.CustomEvent.prototype.type;

/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

goog.provide('org.apache.flex.events.Event');

goog.require('goog.events.Event');



/**
 * @constructor
 * @extends {goog.events.Event}
 * @param {string} type The event type.
 */
org.apache.flex.events.Event = function(type) {
  goog.base(this, type);

  this.type = type;
};
goog.inherits(org.apache.flex.events.Event,
    goog.events.Event);


/**
 * @expose
 * @this {org.apache.flex.events.Event}
 * @param {string} type The event type.
 */
org.apache.flex.events.Event.prototype.init = function(type) {
  this.type = type;
};

/**
 * @expose
 * @this {org.apache.flex.events.Event}
 * @return {Object} The event target.
 */
org.apache.flex.events.Event.prototype.get_target = function() {
  return this.target;
};

/**
 * @expose
 * @type {string} type The event type.
 */
org.apache.flex.events.CustomEvent.prototype.type;

add get_target() because codegen doesn't know that org.apache.flex.events.Event is wrapping goog.events.Event which has target as a property instead of a getter