/**
* JavaScript for core functions
* --------------------------------------------------------------------
- * $Revision:: $
- * $Date:: $
- * $Tag:: 0.2.1-FINAL $
- * $Author:: $
- * --------------------------------------------------------------------
* Copyright (c) 2003 - 2009 by Roland Haeder
- * Copyright (c) 2009 - 2012 by Mailer Developer Team
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team
* For more information visit: http://mxchange.org
*
* This program is free software; you can redistribute it and/or modify
// Check all elements
for (var i = 0; i < heystack.length; i++) {
// Is the element found?
- if (heystack[i] == needle) {
+ if (heystack[i] === needle) {
// Found it and abort
isInArray = true;
break;
} // END - if
- } // END - if
+ } // END - for
// Return status
return isInArray;
// Return it
return decoded;
}
+
+// "Getter" for total elements in given object
+function getTotalCountFromObject (object) {
+ // Default is zero
+ var total = 0;
+
+ // Start looping
+ $.each(object, function (i, j) {
+ // Add it
+ total++;
+ });
+
+ // Return total
+ return total;
+}