- 特に何も無い
- 依存するモジュールの関数を引きずり出しているだけ
virtual-dom/h
は例外で、与えた引数からVNodeを作る為のラッパー
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
# HG changeset patch | |
# Parent ef70f64ca1847cd2730530aeeffab42334c9d57d | |
# User saneyuki_s <saneyuki.s.snyk@gmail.com> | |
diff --git a/ja/browser/chrome/browser/devtools/inspector.dtd b/ja/browser/chrome/browser/devtools/inspector.dtd | |
--- a/ja/browser/chrome/browser/devtools/inspector.dtd | |
+++ b/ja/browser/chrome/browser/devtools/inspector.dtd | |
@@ -1,12 +1,12 @@ | |
-<!ENTITY inspectorHTMLCopyInner.label "内側の HTML をコピー"> | |
+<!ENTITY inspectorHTMLCopyInner.label "innerHTML をコピー"> |
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
(function(){ | |
"use strict"; | |
function seal () { | |
console.log("[Object seal] isFrozen:" + Object.isFrozen(this)); | |
console.log("[Object seal] isSealed:" + Object.isSealed(this)); | |
try { | |
this.a = 1; | |
this.b = "hoge"; |
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
diff --git a/browser/components/preferences/in-content/privacy.js b/browser/components/preferences/in-content/privacy.js | |
--- a/browser/components/preferences/in-content/privacy.js | |
+++ b/browser/components/preferences/in-content/privacy.js | |
@@ -174,18 +174,18 @@ var gPrivacyPane = { | |
// select the remember history option if needed | |
let rememberHistoryCheckbox = document.getElementById("rememberHistory"); | |
if (!rememberHistoryCheckbox.checked) | |
rememberHistoryCheckbox.checked = true; | |
// select the remember forms history option |
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
import {Option} from 'option-t'; | |
import {Observable} from 'rx'; | |
type FilterMapFn<T, U> = (v: T) => Option<U>; | |
function filterMapForObservable<T, U>(source: Observable<T>, op: FilterMapFn<T, U>): Observable<U> { | |
const filtered = source.flatMap(function(v: T): Observable<U> { | |
const mapped: Option<U> = op(v); | |
const result: Observable<U> = | |
mapped.mapOrElse(function def(): Observable<U> { |
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
var hoge = { | |
_hage: null, | |
get hage () { | |
if (this._hage === null) { | |
this._hage = "はげ"; | |
} | |
return this._hage; | |
}, |
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
「コンテンツの読み出し時 (DOMContentLoaded相当のタイミング)に | |
DOM経由でコンテンツの中身を確認する」処理とかはUI操作を妨げる重い処理になったりするんで、 | |
UIとコンテンツのスレッドが別じゃないとUIのフリーズに繋がったりする。 | |
なのでUIのフリーズを回避しつつそういう処理をしたい場合は、 | |
コンテンツの操作スレッド上で実行すれとかで非同期にすればいいんだけど、根本的にそういう処理って | |
コンテンツの中身に真っ当なDOM経由で触ろうとすると、どちらにせよコンテンツと同じスレッドで動かす必要がある。 | |
よって結局コンテンツの読み出し自体のUXに影響がある。 | |
だったらWorkerスレッド上で文字列から擬似的にDOMツリーを作成して、そのDOMを舐めれば問題解決する。 |
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
/** | |
* @return {Array} (destructuring assignment) | |
* @0 {number} | |
* @1 {string} | |
*/ | |
function test() { | |
return [1, "hoge"]; | |
} |
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
# HG changeset patch | |
# Parent 635fcc11d2b16265114d6bbc02768d007f73d66b | |
# User smellman? <???@???.???> | |
diff --git a/config/Preprocessor.py b/config/Preprocessor.py | |
--- a/config/Preprocessor.py | |
+++ b/config/Preprocessor.py | |
@@ -377,16 +377,18 @@ class Preprocessor: | |
# Strips blank lines from the output. | |
def filter_emptyLines(self, aLine): |