BlueGit

timfa frameworkv3

array.contains

timfa Tim Falken · pushed by timfa

Authored 2017-02-03 · 9 years ago

Hash
98c354dde2e2231e6d75d3cde8eec74e89635fb0
Parent
509fa3bc
3 files changed +15 −0
frameworkv3/extentions.js +7 −0
@@ -14,4 +14,11 @@ Array.prototype.remove = function(element)
14 14 {
15 15 console.error("Element not part of array!", this, element);
16 16 }
17 }
18
19 Array.prototype.contains = function(element)
20 {
21 var index = this.indexOf(element);
22
23 return index > -1;
17 24 }
@@ -14,4 +14,11 @@ Array.prototype.remove = function(element)
14 {
14 {
15 console.error("Element not part of array!", this, element);
15 console.error("Element not part of array!", this, element);
16 }
16 }
17}
18
19Array.prototype.contains = function(element)
20{
21 var index = this.indexOf(element);
22
23 return index > -1;
17}
24}
js/framework.js +7 −0
@@ -543,6 +543,13 @@ Array.prototype.remove = function(element)
543 543 {
544 544 console.error("Element not part of array!", this, element);
545 545 }
546 }
547
548 Array.prototype.contains = function(element)
549 {
550 var index = this.indexOf(element);
551
552 return index > -1;
546 553 }//<DOC> <category> Image
547 554 //<DOC> <function> Constructor: new image(urlToImage, subImages = 1, subImagesPerRow = 1)
548 555 function image(url, subImgTotal = 1, perRow = 1)
@@ -543,6 +543,13 @@ Array.prototype.remove = function(element)
543 {
543 {
544 console.error("Element not part of array!", this, element);
544 console.error("Element not part of array!", this, element);
545 }
545 }
546}
547
548Array.prototype.contains = function(element)
549{
550 var index = this.indexOf(element);
551
552 return index > -1;
546}//<DOC> <category> Image
553}//<DOC> <category> Image
547//<DOC> <function> Constructor: new image(urlToImage, subImages = 1, subImagesPerRow = 1)
554//<DOC> <function> Constructor: new image(urlToImage, subImages = 1, subImagesPerRow = 1)
548function image(url, subImgTotal = 1, perRow = 1)
555function image(url, subImgTotal = 1, perRow = 1)
js/lastbuild.txt +1 −0
@@ -1,3 +1,4 @@
1 1 2017-02-03 11:19
2 2 2017-02-03 12:06
3 3 2017-02-03 13:17
4 2017-02-03 13:18
@@ -1,3 +1,4 @@
12017-02-03 11:19
12017-02-03 11:19
22017-02-03 12:06
22017-02-03 12:06
32017-02-03 13:17
32017-02-03 13:17
42017-02-03 13:18