             console.error("Error in Building Render Context", err.message, err)
             @renderError.call(@, err.message, err)
             dfd.reject(err)
-          readyDfd.done ()=>
+          readyDfd.done ()->
             dfd.resolve(ret)
 
         catch e


        dfd = @sandbox.data.deferred()
        datasourceErrors = {}
        try
          keys = _.keys(@datasources)
          promises  = _.map keys, (k)=>
            promiseDfd = @sandbox.data.deferred()
            ds = @datasources[k]
            ds.parse(_.extend({}, @, @options || {}))
            ds.fetch().then (res)->
              promiseDfd.resolve(res)
            , (err)=>
              handler = @["on#{_.string.capitalize(_.string.camelize(k))}Error"]

              datasourceErrors[k] = err
              promiseDfd.resolve(handler err)
            promiseDfd
          widgetDeferred = @sandbox.data.when.apply(undefined, promises)
          templateDeferred = @sandbox.template.load(@templates, @ref)
          templateDeferred.done (tpls)=>
            @_templates     = tpls
