<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>m-hiyama</author_name>
  <author_url>https://blog.hatena.ne.jp/m-hiyama/</author_url>
  <blog_title>檜山正幸のキマイラ飼育記 (はてなBlog)</blog_title>
  <blog_url>https://m-hiyama.hatenablog.com/</blog_url>
  <categories>
    <anon>雑記／備忘</anon>
  </categories>
  <description>「大域名前空間を汚しまくっているJavaScriptライブラリを単一名前空間に押し込める方法」で、無作法に大域名前空間を汚しているJavaScriptライブラリをなんとかする方法を紹介しました。それとは違った状況で、意図的に大域名前、例えば関数myfuncを定義したいとしましょう。普通に次のように書けばよさそうです。 function myfunc() { // ... } しかし、myfuncを定義するための補助関数が大量にあるとします。そして、それらの補助関数は利用者が呼ぶ必要はないとしましょう。補助関数達を大域名前空間に定義はしたくないですよね。既存のライブラリでどうやっているか眺めてみ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fm-hiyama.hatenablog.com%2Fentry%2F20120814%2F1344916537&quot; title=&quot;JavaScriptで少数の大域的名前だけを定義したいとき - 檜山正幸のキマイラ飼育記 (はてなBlog)&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-08-14 12:55:37</published>
  <title>JavaScriptで少数の大域的名前だけを定義したいとき</title>
  <type>rich</type>
  <url>https://m-hiyama.hatenablog.com/entry/20120814/1344916537</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
