WebStorm 8.0が Releaseされました!
自分は昨日アップデート完了。
って事で新機能の一覧を見てみる。
When I use WebStorm 7.0.3, sometimes the editor for JavaScript shows me wrong syntax highlighting or coloring.
This can be fixed mostly with adding some annotations to tell the editor meaning of the code.
But unfortunately, the problem cannot be fixed on this way, infrequently.
In this case, I fix as follows,
Open the project which has this problem. Click ‘File’ -> ‘Invalidate Caches/Restart…’ Click [Invalidate and Restart] button when opened the dialog.
JavaScriptの Testing/BDD Frameworkを Jasmineに変えたので、Jasmine 2.0について自分なりにまとめてみた。
Closureで型キャストのやり方。 function makeInstance(clazz) { var instance = /**@type {Type}*/(new clazz()); .... return instance; } この場合括弧が必要なので注意。
data-XXXX属性と、.dataで持ってくるデータの関係を調査してみた。
ClosureでAdvanced Optimizationsに対応する場合にいろいろ調べたこと覚書。
The following issue has been reproduced my environment with bundled rhino and jsdoc.cmd.
https://github.com/jsdoc3/jsdoc/issues/533
My environment is Windows 8.1 and Java 1.7.0_45.
I rewrote jsdoc.cmd.
When I compile the JavaScript in following with Closure Compiler, usually I get an warning message “WARNING – Bad type annotation. Unknown type ClassA”. But, sometimes the compiler put no warning message.
(function() {
/**
* @private
* @constructor
*/
function ClassA() {
}
/** @type {function()} */
ClassA.prototype.say = function() {
console.log("hoge");
};
/**
* @private
* @constructor
*/
function ClassB() {
/** @type {ClassA} */
this.a = new ClassA();
}
/**
* @expose
*/
ClassB.