lib/yapper/document/callbacks.rb in motion-yapper-0.0.1 vs lib/yapper/document/callbacks.rb in motion-yapper-0.0.2
- old
+ new
@@ -65,22 +65,15 @@
block.call
end
callback_proc = Proc.new do
run_callback('after', operation)
- notify_callback(operation)
end
if Yapper::Document::Callbacks.postponed_callbacks
Yapper::Document::Callbacks.postpone_callback(&callback_proc)
else
callback_proc.call
end
- end
-
- private
-
- def notify_callback(operation)
- NSNotificationCenter.defaultCenter.postNotificationName("yapper:#{self.model_name}:#{operation}", object: self , userInfo: nil)
end
end
end