<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>holysugar</author_name>
  <author_url>https://blog.hatena.ne.jp/holysugar/</author_url>
  <blog_title>HWPS別館</blog_title>
  <blog_url>https://holysugar.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>端的に言うと以下のコードは想定通りに動かない。(Node のコンソールで) var Backbone = require('backbone') var Sinon = require('sinon') var m = new Backbone.Model({ 'foo': 'bar' }) var f = function(){ console.log(&quot;===&gt; Callback called&quot;) } m.on('change', f) Sinon.spy(this, 'f') m.set('foo', 'hoge') f.called // =&gt; false m.on('change',…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fholysugar.hatenadiary.org%2Fentry%2F20120711%2Fp1&quot; title=&quot; [Node]Backbone.js + Sinon.js で callback をテストしようとしてハマる - HWPS別館&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-07-11 00:00:00</published>
  <title> [Node]Backbone.js + Sinon.js で callback をテストしようとしてハマる</title>
  <type>rich</type>
  <url>https://holysugar.hatenadiary.org/entry/20120711/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
