From baf7186863c4d8275308852d3cfe57885ce66d62 Mon Sep 17 00:00:00 2001
From: Mayank Mathur <Mynk-9@users.noreply.github.com>
Date: Tue, 24 May 2016 21:21:18 +0530
Subject: [PATCH 1/3] Sync with master

---
 JSFW.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/JSFW.js b/JSFW.js
index e774ca7..c2841d8 100644
--- a/JSFW.js
+++ b/JSFW.js
@@ -1,7 +1,7 @@
 (
 
 	function () {
-		var __ = function (args) {
+		var ___ = function (args) {
 			return new lib(args);
 		};
 		
@@ -24,7 +24,7 @@
 			return this;
 		};
 		
-		__.func = lib.prototype = {
+		___.func = lib.prototype = {
 			/* general */
 			hide: function() {
 				var len = this.length;
@@ -114,9 +114,9 @@
 			}
 		};
 		
-		if(!window.__) {
-			window.__ = __;
+		if(!window.___) {
+			window.___ = ___;
 		}
 	}
 	
-)();
+)();
\ No newline at end of file

From 2f410a5a54b947e08a55404086fcaaf9e1d77019 Mon Sep 17 00:00:00 2001
From: Mayank Mathur <Mynk-9@users.noreply.github.com>
Date: Wed, 12 Oct 2016 22:15:07 +0530
Subject: [PATCH 2/3] In sync with main branch.

---
 JSFW.js | 40 +++++++++++++++++++++++++++++++++++++++-
 1 file changed, 39 insertions(+), 1 deletion(-)

diff --git a/JSFW.js b/JSFW.js
index c2841d8..c210041 100644
--- a/JSFW.js
+++ b/JSFW.js
@@ -1,3 +1,6 @@
+/*! Copyright © 2016 Mayank Mathur 
+see license at - https://raw.githubusercontent.com/Mynk-9/Javascript-Web-Framework/master/LICENSE
+*/
 (
 
 	function () {
@@ -40,7 +43,7 @@
 				}
 				return this;
 			},
-			/* class and id */
+			/* class, id etc. */
 			toggleClass: function(oldC, newC) {
 				var len = this.length;
 				while(len--) {
@@ -90,6 +93,28 @@
 				}
 				return this;
 			},
+			coordinates: function() {
+				var pos = [];
+				if (this.length === 1) {
+					pos = {x: this[0].offsetLeft, y: this[0].offsetTop};
+				} else {
+					for (len = 0; len < this.length; len++) {
+						pos[len] = {x: this[len].offsetLeft, y: this[len].offsetTop};
+					}
+				}
+				return pos;
+			},
+			scrolled: function() {
+				var pos = [];
+				if (this.length === 1) {
+					pos = {x: this[0].scrollLeft, y: this[0].scrollTop};
+				} else {
+					for (len = 0; len < this.length; len++) {
+						pos[len] = {x: this[len].scrollLeft, y: this[len].scrollTop};
+					}
+				}
+				return pos;
+			},
 			/* events */
 			onEvent: function(evnt, fun) {
 				var len = this.length;
@@ -112,6 +137,19 @@
 				document.head.appendChild(x);
 				return this;
 			}
+			/* how to add new method
+			
+			methodName: function(eventArgs) {
+				// all the code here
+				//
+				//
+				
+				return this;
+					// or
+				return returnVar;
+			}
+			
+			*/
 		};
 		
 		if(!window.___) {

From ce931c3b400e3aa38aca0b8426cc5e8bd68a73e3 Mon Sep 17 00:00:00 2001
From: Mayank Mathur <Mynk-9@users.noreply.github.com>
Date: Tue, 15 Nov 2016 18:15:05 +0530
Subject: [PATCH 3/3] Sync with master.

---
 JSFW.js | 82 +++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 59 insertions(+), 23 deletions(-)

diff --git a/JSFW.js b/JSFW.js
index c210041..72c1fe5 100644
--- a/JSFW.js
+++ b/JSFW.js
@@ -17,7 +17,7 @@ see license at - https://raw.githubusercontent.com/Mynk-9/Javascript-Web-Framewo
 			}
 			this.length = selector.length;
 			if (typeof this.length === 'undefined') {this.length = 1;}
-			this.version = '1.0.1';
+			this.version = '2.0.0';
 			
 			var i = 0;
 			for (i = 0; i < this.length; i++) {
@@ -43,6 +43,64 @@ see license at - https://raw.githubusercontent.com/Mynk-9/Javascript-Web-Framewo
 				}
 				return this;
 			},
+			coordinates: function() {
+				var pos = [];
+				if (this.length === 1) {
+					pos = {x: this[0].offsetLeft, y: this[0].offsetTop};
+				} else {
+					for (len = 0; len < this.length; len++) {
+						pos[len] = {x: this[len].offsetLeft, y: this[len].offsetTop};
+					}
+				}
+				return pos;
+			},
+			scrolled: function() {
+				var pos = [];
+				if (this.length === 1) {
+					pos = {x: this[0].scrollLeft, y: this[0].scrollTop};
+				} else {
+					for (len = 0; len < this.length; len++) {
+						pos[len] = {x: this[len].scrollLeft, y: this[len].scrollTop};
+					}
+				}
+				return pos;
+			},
+			animate: function(posFrom, posTo, func, time) {
+				if (typeof(func) != 'string' || typeof(posFrom) != 'object' || typeof(posTo) != 'object' || typeof(time) != 'number') {
+					console.log('error in animate function -> invalid arguments');
+					return 0;
+				}
+				//console.log(((posTo[1] - posFrom[1]) || (posTo.y - posFrom.y) || (posTo.y - posFrom[1]) || (posTo[1] - posFrom.y)));
+				
+				var len = this.length;
+				console.log(this[0]);
+				var anims = [len];
+				while (len--) {
+					
+					var diff_X = ((posTo[0] - posFrom[0]) || (posTo.x - posFrom.x) || (posTo.x - posFrom[0]) || (posTo[0] - posFrom.x));
+					var diff_Y = ((posTo[1] - posFrom[1]) || (posTo.y - posFrom.y) || (posTo.y - posFrom[1]) || (posTo[1] - posFrom.y));
+					var speed_X = diff_X / time;
+					var speed_Y = diff_Y / time;
+					var net_X, net_Y, fps;
+					net_X = (posFrom[0] || posFrom.x);
+					net_Y = (posFrom[1] || posFrom.y);
+					fps = 20;
+					var cont = 0;
+					
+					var obj = this[len];
+					var itr = len;
+					anims[len] = setInterval(function() {
+						if (net_X < diff_X && net_Y < diff_Y) {
+							net_X += (speed_X / fps);
+							net_Y += (speed_Y / fps);
+							obj.style.left = net_X + 'px';
+							obj.style.top = net_Y + 'px';
+						} else {
+							clearInterval(anims[itr]);
+						}
+					}, time/fps*1000);
+				}
+			},
 			/* class, id etc. */
 			toggleClass: function(oldC, newC) {
 				var len = this.length;
@@ -93,28 +151,6 @@ see license at - https://raw.githubusercontent.com/Mynk-9/Javascript-Web-Framewo
 				}
 				return this;
 			},
-			coordinates: function() {
-				var pos = [];
-				if (this.length === 1) {
-					pos = {x: this[0].offsetLeft, y: this[0].offsetTop};
-				} else {
-					for (len = 0; len < this.length; len++) {
-						pos[len] = {x: this[len].offsetLeft, y: this[len].offsetTop};
-					}
-				}
-				return pos;
-			},
-			scrolled: function() {
-				var pos = [];
-				if (this.length === 1) {
-					pos = {x: this[0].scrollLeft, y: this[0].scrollTop};
-				} else {
-					for (len = 0; len < this.length; len++) {
-						pos[len] = {x: this[len].scrollLeft, y: this[len].scrollTop};
-					}
-				}
-				return pos;
-			},
 			/* events */
 			onEvent: function(evnt, fun) {
 				var len = this.length;
