       failureCallbacks: [callbacks.onFailure]
 
 
-  push: (options={}, callbacks={})->
-    defaultOnSuccess = ()=>
-      @array.push view
-
+  push: (options={}, callbacks={}) ->
     view = if options.constructor.name == "WebView"
       options
     else

    steroids.nativeBridge.nativeCall
      method: "replaceLayers"
      parameters: parameters
      successCallbacks: [defaultOnSuccess, callbacks.onSuccess]
      failureCallbacks: [callbacks.onFailure]

class LayerCollection
  constructor: ->

  pop: (options={}, callbacks={}) ->

    steroids.nativeBridge.nativeCall
      method: "popLayer"
      successCallbacks: [callbacks.onSuccess]
      failureCallbacks: [callbacks.onFailure]

  popAll: (options={}, callbacks={}) ->
