Bug fix/deferred

Fixes to deferred, namely it didn't support getting called from an arbitrary method (`add_constraints`).  The fix was to pass the context into `deferred(..)` in certain situations.
yup, works fine without the check.


> On Jun 20, 2014, at 1:28 PM, Jamon Holmgren <notifications@github.com> wrote:
> 
> In lib/motion-kit/layouts/base_layout.rb:
> 
> > @@ -31,7 +31,11 @@ def initialize(args={})
> >      end
> >  
> >      def set_layout(layout)
> > -      @layout = layout && WeakRef.new(layout)
> > +      if layout.respond_to?(:weakref_alive?)
> > +        @layout = layout
> > +      else
> > +        @layout = layout && WeakRef.new(layout)
> > +      end
> IIRC, WeakRef.new(WeakRef.new(layout)) just wraps with one WeakRef, so this shouldn't be necessary.
> 
> —
> Reply to this email directly or view it on GitHub.
>