 Ractive = require "ractive"
+Parse = require("parse")
 EventEmitter = require "events"
 
 eventManager = new EventEmitter()

					eventManager.emit(@className + "-" + @id, key, value)
				return retVal
			@Parse[initKey] = true
		
		filter: (obj) ->
			throw new Error "Could not find Parse. You must do `adaptor.Parse = Parse` - see https://github.com/cprecioso/ractive-adaptor-ractive#installation for more information" unless @Parse?.Object?.prototype?.set?
			obj instanceof @Parse.Object
		wrap: (ractive, object, keypath, prefixer) ->
			@init()
			new WrappedParseObject ractive, object, keypath, prefixer

previousSet = ->

module.exports = adaptor =
		
		init: ->
			throw new Error "Could not find Parse. You must do `adaptor.Parse = Parse` - see https://github.com/cprecioso/ractive-adaptor-ractive#installation for more information" unless @Parse?.Object?.prototype?.set?
