updated lib animation to play nicely by itself.

Pawkette [03-14-14 - 02:52]
updated lib animation to play nicely by itself.
Filename
LibAnimation-1.0.txt
LibAnimation.lua
diff --git a/LibAnimation-1.0.txt b/LibAnimation-1.0.txt
index 0b3a1a9..5b864f5 100644
--- a/LibAnimation-1.0.txt
+++ b/LibAnimation-1.0.txt
@@ -1,4 +1,5 @@
 ## APIVersion: 100000
 ## Title: LibAnimation-1.0
+## DependsOn: LibStub

 LibAnimation.lua
\ No newline at end of file
diff --git a/LibAnimation.lua b/LibAnimation.lua
index 4bf99ab..364c62f 100644
--- a/LibAnimation.lua
+++ b/LibAnimation.lua
@@ -28,8 +28,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 ]]
 ----------------------------------------------------
-local kName, kVersion = 'LibAnimation-1.0', 1.0
+if ( not LibStub ) then return end
+
+local kName, kVersion = 'LibAnimation-1.0', 1.1
 local LibAnimation = LibStub:NewLibrary( kName, kVersion )
+if ( not LibAnimation ) then return end

 local AnimationMgr = ANIMATION_MANAGER
 local defaultEase = ZO_LinearEase