Skip to content

Instantly share code, notes, and snippets.

@themasch
Created May 8, 2018 16:14
Show Gist options
  • Save themasch/c96cfffec58691bd7cfb60ba941ca90f to your computer and use it in GitHub Desktop.
Save themasch/c96cfffec58691bd7cfb60ba941ca90f to your computer and use it in GitHub Desktop.
example that creates a incorrect warning in webstorm/phpstorm
define(['./Object'], function (BaseObject) {
"use strict";
/**
* @class some cool class
*
* @abstract
* @public
* @alias demo.AbstractClass
*/
var AbstractClass = BaseObject.extend("demo.AbstractClass", /* @lends demo.AbstractClass */ {});
/**
* Attaches an event handler to the event with the given identifier.
* @return {demo.AbstractClass} Returns <code>this</code> to allow method chaining
* @public
*/
AbstractClass.prototype.doSomethingCool = function () {
}
});
define(['/AbstractClass'], function (AbstractClass) {
"use strict";
/**
* @class
* @extends demo.AbstractClass
* @alias demo.TeamList
*/
return AbstractClass.extend("demo.TeamList", {
/** @lends demo.TeamList.prototype */
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment