jsUtils

utils  0.2.4

jsUtils > utils > Utils.Revertable
Search:
 
Filters

static Class Utils.Revertable

Revertable is a mixin object which adds revertNamespace to a namespace object created with replaceNamespace.

Methods

revertNamespace

Object revertNamespace ( )
Reverts the current namespace.
Utils.replaceNamespace("SomeNamespace", Utils.Revertable)
var NewNamespace = SomeNamespace.revertNamespace()
This will rename SomeNamespace as NewNameSpace and restore the previous contents of SomeNamespace.
Returns: Object
the namespace object


Copyright © 2009 Gareth Andrew. All rights reserved.