Created
May 8, 2018 16:14
-
-
Save themasch/c96cfffec58691bd7cfb60ba941ca90f to your computer and use it in GitHub Desktop.
example that creates a incorrect warning in webstorm/phpstorm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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