@textadventures/quest-viva-wasmplayer 6.0.0-beta.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/.stamp +0 -0
  2. package/WasmPlayer.runtimeconfig.json +46 -0
  3. package/_framework/Common.wasm +0 -0
  4. package/_framework/Engine.wasm +0 -0
  5. package/_framework/ExtendedNumerics.BigDecimal.wasm +0 -0
  6. package/_framework/Legacy.wasm +0 -0
  7. package/_framework/Microsoft.CSharp.wasm +0 -0
  8. package/_framework/Microsoft.Extensions.DependencyInjection.Abstractions.wasm +0 -0
  9. package/_framework/Microsoft.Extensions.Logging.Abstractions.wasm +0 -0
  10. package/_framework/Microsoft.VisualBasic.Core.wasm +0 -0
  11. package/_framework/Microsoft.VisualBasic.wasm +0 -0
  12. package/_framework/Microsoft.Win32.Primitives.wasm +0 -0
  13. package/_framework/Microsoft.Win32.Registry.wasm +0 -0
  14. package/_framework/NCalc.Async.wasm +0 -0
  15. package/_framework/NCalc.Core.wasm +0 -0
  16. package/_framework/NCalc.Domain.wasm +0 -0
  17. package/_framework/NCalc.Parser.wasm +0 -0
  18. package/_framework/Parlot.wasm +0 -0
  19. package/_framework/PlayerCore.wasm +0 -0
  20. package/_framework/System.AppContext.wasm +0 -0
  21. package/_framework/System.Buffers.wasm +0 -0
  22. package/_framework/System.Collections.Concurrent.wasm +0 -0
  23. package/_framework/System.Collections.Immutable.wasm +0 -0
  24. package/_framework/System.Collections.NonGeneric.wasm +0 -0
  25. package/_framework/System.Collections.Specialized.wasm +0 -0
  26. package/_framework/System.Collections.wasm +0 -0
  27. package/_framework/System.ComponentModel.Annotations.wasm +0 -0
  28. package/_framework/System.ComponentModel.DataAnnotations.wasm +0 -0
  29. package/_framework/System.ComponentModel.EventBasedAsync.wasm +0 -0
  30. package/_framework/System.ComponentModel.Primitives.wasm +0 -0
  31. package/_framework/System.ComponentModel.TypeConverter.wasm +0 -0
  32. package/_framework/System.ComponentModel.wasm +0 -0
  33. package/_framework/System.Configuration.wasm +0 -0
  34. package/_framework/System.Console.wasm +0 -0
  35. package/_framework/System.Core.wasm +0 -0
  36. package/_framework/System.Data.Common.wasm +0 -0
  37. package/_framework/System.Data.DataSetExtensions.wasm +0 -0
  38. package/_framework/System.Data.wasm +0 -0
  39. package/_framework/System.Diagnostics.Contracts.wasm +0 -0
  40. package/_framework/System.Diagnostics.Debug.wasm +0 -0
  41. package/_framework/System.Diagnostics.DiagnosticSource.wasm +0 -0
  42. package/_framework/System.Diagnostics.FileVersionInfo.wasm +0 -0
  43. package/_framework/System.Diagnostics.Process.wasm +0 -0
  44. package/_framework/System.Diagnostics.StackTrace.wasm +0 -0
  45. package/_framework/System.Diagnostics.TextWriterTraceListener.wasm +0 -0
  46. package/_framework/System.Diagnostics.Tools.wasm +0 -0
  47. package/_framework/System.Diagnostics.TraceSource.wasm +0 -0
  48. package/_framework/System.Diagnostics.Tracing.wasm +0 -0
  49. package/_framework/System.Drawing.Primitives.wasm +0 -0
  50. package/_framework/System.Drawing.wasm +0 -0
  51. package/_framework/System.Dynamic.Runtime.wasm +0 -0
  52. package/_framework/System.Formats.Asn1.wasm +0 -0
  53. package/_framework/System.Formats.Tar.wasm +0 -0
  54. package/_framework/System.Globalization.Calendars.wasm +0 -0
  55. package/_framework/System.Globalization.Extensions.wasm +0 -0
  56. package/_framework/System.Globalization.wasm +0 -0
  57. package/_framework/System.IO.Compression.Brotli.wasm +0 -0
  58. package/_framework/System.IO.Compression.FileSystem.wasm +0 -0
  59. package/_framework/System.IO.Compression.ZipFile.wasm +0 -0
  60. package/_framework/System.IO.Compression.wasm +0 -0
  61. package/_framework/System.IO.FileSystem.AccessControl.wasm +0 -0
  62. package/_framework/System.IO.FileSystem.DriveInfo.wasm +0 -0
  63. package/_framework/System.IO.FileSystem.Primitives.wasm +0 -0
  64. package/_framework/System.IO.FileSystem.Watcher.wasm +0 -0
  65. package/_framework/System.IO.FileSystem.wasm +0 -0
  66. package/_framework/System.IO.IsolatedStorage.wasm +0 -0
  67. package/_framework/System.IO.MemoryMappedFiles.wasm +0 -0
  68. package/_framework/System.IO.Pipelines.wasm +0 -0
  69. package/_framework/System.IO.Pipes.AccessControl.wasm +0 -0
  70. package/_framework/System.IO.Pipes.wasm +0 -0
  71. package/_framework/System.IO.UnmanagedMemoryStream.wasm +0 -0
  72. package/_framework/System.IO.wasm +0 -0
  73. package/_framework/System.Linq.AsyncEnumerable.wasm +0 -0
  74. package/_framework/System.Linq.Expressions.wasm +0 -0
  75. package/_framework/System.Linq.Parallel.wasm +0 -0
  76. package/_framework/System.Linq.Queryable.wasm +0 -0
  77. package/_framework/System.Linq.wasm +0 -0
  78. package/_framework/System.Memory.wasm +0 -0
  79. package/_framework/System.Net.Http.Json.wasm +0 -0
  80. package/_framework/System.Net.Http.wasm +0 -0
  81. package/_framework/System.Net.HttpListener.wasm +0 -0
  82. package/_framework/System.Net.Mail.wasm +0 -0
  83. package/_framework/System.Net.NameResolution.wasm +0 -0
  84. package/_framework/System.Net.NetworkInformation.wasm +0 -0
  85. package/_framework/System.Net.Ping.wasm +0 -0
  86. package/_framework/System.Net.Primitives.wasm +0 -0
  87. package/_framework/System.Net.Quic.wasm +0 -0
  88. package/_framework/System.Net.Requests.wasm +0 -0
  89. package/_framework/System.Net.Security.wasm +0 -0
  90. package/_framework/System.Net.ServerSentEvents.wasm +0 -0
  91. package/_framework/System.Net.ServicePoint.wasm +0 -0
  92. package/_framework/System.Net.Sockets.wasm +0 -0
  93. package/_framework/System.Net.WebClient.wasm +0 -0
  94. package/_framework/System.Net.WebHeaderCollection.wasm +0 -0
  95. package/_framework/System.Net.WebProxy.wasm +0 -0
  96. package/_framework/System.Net.WebSockets.Client.wasm +0 -0
  97. package/_framework/System.Net.WebSockets.wasm +0 -0
  98. package/_framework/System.Net.wasm +0 -0
  99. package/_framework/System.Numerics.Vectors.wasm +0 -0
  100. package/_framework/System.Numerics.wasm +0 -0
  101. package/_framework/System.ObjectModel.wasm +0 -0
  102. package/_framework/System.Private.CoreLib.wasm +0 -0
  103. package/_framework/System.Private.DataContractSerialization.wasm +0 -0
  104. package/_framework/System.Private.Uri.wasm +0 -0
  105. package/_framework/System.Private.Xml.Linq.wasm +0 -0
  106. package/_framework/System.Private.Xml.wasm +0 -0
  107. package/_framework/System.Reflection.DispatchProxy.wasm +0 -0
  108. package/_framework/System.Reflection.Emit.ILGeneration.wasm +0 -0
  109. package/_framework/System.Reflection.Emit.Lightweight.wasm +0 -0
  110. package/_framework/System.Reflection.Emit.wasm +0 -0
  111. package/_framework/System.Reflection.Extensions.wasm +0 -0
  112. package/_framework/System.Reflection.Metadata.wasm +0 -0
  113. package/_framework/System.Reflection.Primitives.wasm +0 -0
  114. package/_framework/System.Reflection.TypeExtensions.wasm +0 -0
  115. package/_framework/System.Reflection.wasm +0 -0
  116. package/_framework/System.Resources.Reader.wasm +0 -0
  117. package/_framework/System.Resources.ResourceManager.wasm +0 -0
  118. package/_framework/System.Resources.Writer.wasm +0 -0
  119. package/_framework/System.Runtime.CompilerServices.Unsafe.wasm +0 -0
  120. package/_framework/System.Runtime.CompilerServices.VisualC.wasm +0 -0
  121. package/_framework/System.Runtime.Extensions.wasm +0 -0
  122. package/_framework/System.Runtime.Handles.wasm +0 -0
  123. package/_framework/System.Runtime.InteropServices.JavaScript.wasm +0 -0
  124. package/_framework/System.Runtime.InteropServices.RuntimeInformation.wasm +0 -0
  125. package/_framework/System.Runtime.InteropServices.wasm +0 -0
  126. package/_framework/System.Runtime.Intrinsics.wasm +0 -0
  127. package/_framework/System.Runtime.Loader.wasm +0 -0
  128. package/_framework/System.Runtime.Numerics.wasm +0 -0
  129. package/_framework/System.Runtime.Serialization.Formatters.wasm +0 -0
  130. package/_framework/System.Runtime.Serialization.Json.wasm +0 -0
  131. package/_framework/System.Runtime.Serialization.Primitives.wasm +0 -0
  132. package/_framework/System.Runtime.Serialization.Xml.wasm +0 -0
  133. package/_framework/System.Runtime.Serialization.wasm +0 -0
  134. package/_framework/System.Runtime.wasm +0 -0
  135. package/_framework/System.Security.AccessControl.wasm +0 -0
  136. package/_framework/System.Security.Claims.wasm +0 -0
  137. package/_framework/System.Security.Cryptography.Algorithms.wasm +0 -0
  138. package/_framework/System.Security.Cryptography.Cng.wasm +0 -0
  139. package/_framework/System.Security.Cryptography.Csp.wasm +0 -0
  140. package/_framework/System.Security.Cryptography.Encoding.wasm +0 -0
  141. package/_framework/System.Security.Cryptography.OpenSsl.wasm +0 -0
  142. package/_framework/System.Security.Cryptography.Primitives.wasm +0 -0
  143. package/_framework/System.Security.Cryptography.X509Certificates.wasm +0 -0
  144. package/_framework/System.Security.Cryptography.wasm +0 -0
  145. package/_framework/System.Security.Principal.Windows.wasm +0 -0
  146. package/_framework/System.Security.Principal.wasm +0 -0
  147. package/_framework/System.Security.SecureString.wasm +0 -0
  148. package/_framework/System.Security.wasm +0 -0
  149. package/_framework/System.ServiceModel.Web.wasm +0 -0
  150. package/_framework/System.ServiceProcess.wasm +0 -0
  151. package/_framework/System.Text.Encoding.CodePages.wasm +0 -0
  152. package/_framework/System.Text.Encoding.Extensions.wasm +0 -0
  153. package/_framework/System.Text.Encoding.wasm +0 -0
  154. package/_framework/System.Text.Encodings.Web.wasm +0 -0
  155. package/_framework/System.Text.Json.wasm +0 -0
  156. package/_framework/System.Text.RegularExpressions.wasm +0 -0
  157. package/_framework/System.Threading.AccessControl.wasm +0 -0
  158. package/_framework/System.Threading.Channels.wasm +0 -0
  159. package/_framework/System.Threading.Overlapped.wasm +0 -0
  160. package/_framework/System.Threading.Tasks.Dataflow.wasm +0 -0
  161. package/_framework/System.Threading.Tasks.Extensions.wasm +0 -0
  162. package/_framework/System.Threading.Tasks.Parallel.wasm +0 -0
  163. package/_framework/System.Threading.Tasks.wasm +0 -0
  164. package/_framework/System.Threading.Thread.wasm +0 -0
  165. package/_framework/System.Threading.ThreadPool.wasm +0 -0
  166. package/_framework/System.Threading.Timer.wasm +0 -0
  167. package/_framework/System.Threading.wasm +0 -0
  168. package/_framework/System.Transactions.Local.wasm +0 -0
  169. package/_framework/System.Transactions.wasm +0 -0
  170. package/_framework/System.ValueTuple.wasm +0 -0
  171. package/_framework/System.Web.HttpUtility.wasm +0 -0
  172. package/_framework/System.Web.wasm +0 -0
  173. package/_framework/System.Windows.wasm +0 -0
  174. package/_framework/System.Xml.Linq.wasm +0 -0
  175. package/_framework/System.Xml.ReaderWriter.wasm +0 -0
  176. package/_framework/System.Xml.Serialization.wasm +0 -0
  177. package/_framework/System.Xml.XDocument.wasm +0 -0
  178. package/_framework/System.Xml.XPath.XDocument.wasm +0 -0
  179. package/_framework/System.Xml.XPath.wasm +0 -0
  180. package/_framework/System.Xml.XmlDocument.wasm +0 -0
  181. package/_framework/System.Xml.XmlSerializer.wasm +0 -0
  182. package/_framework/System.Xml.wasm +0 -0
  183. package/_framework/System.wasm +0 -0
  184. package/_framework/WasmPlayer.wasm +0 -0
  185. package/_framework/WindowsBase.wasm +0 -0
  186. package/_framework/dotnet.boot.js +1003 -0
  187. package/_framework/dotnet.js +4 -0
  188. package/_framework/dotnet.native.js +6687 -0
  189. package/_framework/dotnet.native.wasm +0 -0
  190. package/_framework/dotnet.runtime.js +4 -0
  191. package/_framework/icudt_CJK.dat +0 -0
  192. package/_framework/icudt_EFIGS.dat +0 -0
  193. package/_framework/icudt_no_CJK.dat +0 -0
  194. package/_framework/mscorlib.wasm +0 -0
  195. package/_framework/netstandard.wasm +0 -0
  196. package/chrome.css +22 -0
  197. package/favicon.svg +1 -0
  198. package/grid.js +446 -0
  199. package/index.html +214 -0
  200. package/lib/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  201. package/lib/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  202. package/lib/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  203. package/lib/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  204. package/lib/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  205. package/lib/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  206. package/lib/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  207. package/lib/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  208. package/lib/images/ui-icons_217bc0_256x240.png +0 -0
  209. package/lib/images/ui-icons_2e83ff_256x240.png +0 -0
  210. package/lib/images/ui-icons_469bdd_256x240.png +0 -0
  211. package/lib/images/ui-icons_6da8d5_256x240.png +0 -0
  212. package/lib/images/ui-icons_cd0a0a_256x240.png +0 -0
  213. package/lib/images/ui-icons_d8e7f3_256x240.png +0 -0
  214. package/lib/images/ui-icons_f9bd01_256x240.png +0 -0
  215. package/lib/jquery-2.1.1.min.js +4 -0
  216. package/lib/jquery-ui.min.css +7 -0
  217. package/lib/jquery-ui.min.js +13 -0
  218. package/lib/jquery.multi-open-accordion-1.5.3.js +261 -0
  219. package/lib/paper.js +12848 -0
  220. package/logo.svg +1 -0
  221. package/package.json +13 -0
  222. package/player.js +258 -0
  223. package/playercore.css +293 -0
  224. package/playercore.htm +206 -0
  225. package/playercore.js +2639 -0
  226. package/quest-config.js +13 -0
  227. package/wasm-player.js +2024 -0
@@ -0,0 +1,261 @@
1
+ /*
2
+ * jQuery UI Multi Open Accordion Plugin
3
+ * Author : Anas Nakawa (http://anasnakawa.wordpress.com/)
4
+ * Date : 22-Jul-2011
5
+ * Released Under MIT License
6
+ * You are welcome to enhance this plugin at https://code.google.com/p/jquery-multi-open-accordion/
7
+ */
8
+ (function ($) {
9
+
10
+ $.widget('ui.multiOpenAccordion', {
11
+ options: {
12
+ active: 0,
13
+ showAll: null,
14
+ hideAll: null,
15
+ _classes: {
16
+ accordion: 'ui-accordion ui-widget ui-helper-reset ui-accordion-icons',
17
+ h3: 'ui-accordion-header ui-helper-reset ui-state-default ui-corner-all',
18
+ div: 'ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom',
19
+ divActive: 'ui-accordion-content-active',
20
+ span: 'ui-icon ui-icon-triangle-1-e',
21
+ stateDefault: 'ui-state-default',
22
+ stateHover: 'ui-state-hover'
23
+ }
24
+ },
25
+
26
+ _create: function () {
27
+ var self = this,
28
+
29
+ options = self.options,
30
+
31
+ $this = self.element,
32
+
33
+ $h3 = $this.children('h3'),
34
+
35
+ $div = $this.children('div');
36
+
37
+ $this.addClass(options._classes.accordion);
38
+
39
+ $h3.each(function (index) {
40
+ var $this = $(this);
41
+ $this.addClass(options._classes.h3).prepend('<span class="{class}"></span>'.replace(/{class}/, options._classes.span));
42
+ if (self._isActive(index)) {
43
+ self._showTab($this)
44
+ }
45
+ }); // end h3 each
46
+
47
+ $this.children('div').each(function (index) {
48
+ var $this = $(this);
49
+ $this.addClass(options._classes.div);
50
+ }); // end each
51
+
52
+ $h3.bind('click', function (e) {
53
+ // preventing on click to navigate to the top of document
54
+ e.preventDefault();
55
+ var $this = $(this);
56
+ var ui = {
57
+ tab: $this,
58
+ content: $this.next('div')
59
+ };
60
+ self._trigger('click', null, ui);
61
+ if ($this.hasClass(options._classes.stateDefault)) {
62
+ self._showTab($this);
63
+ } else {
64
+ self._hideTab($this);
65
+ }
66
+ });
67
+
68
+
69
+ $h3.bind('mouseover', function () {
70
+ $(this).addClass(options._classes.stateHover);
71
+ });
72
+
73
+ $h3.bind('mouseout', function () {
74
+ $(this).removeClass(options._classes.stateHover);
75
+ });
76
+
77
+ // triggering initialized
78
+ self._trigger('init', null, $this);
79
+
80
+ },
81
+
82
+ // destroying the whole multi open widget
83
+ destroy: function () {
84
+ var self = this;
85
+ var $this = self.element;
86
+ var $h3 = $this.children('h3');
87
+ var $div = $this.children('div');
88
+ var options = self.options;
89
+ $this.children('h3').unbind('click mouseover mouseout');
90
+ $this.removeClass(options._classes.accordion);
91
+ $h3.removeClass(options._classes.h3).removeClass('ui-state-default ui-corner-all ui-state-active ui-corner-top').children('span').remove();
92
+ $div.removeClass(options._classes.div + ' ' + options._classes.divActive).show();
93
+ },
94
+
95
+ // private helper method that used to show tabs
96
+ _showTab: function ($this) {
97
+ var $span = $this.children('span.ui-icon');
98
+ var $div = $this.next();
99
+ var options = this.options;
100
+ $this.removeClass('ui-state-default ui-corner-all').addClass('ui-state-active ui-corner-top');
101
+ $span.removeClass('ui-icon-triangle-1-e').addClass('ui-icon-triangle-1-s');
102
+ $div.slideDown('fast', function () {
103
+ $div.addClass(options._classes.divActive);
104
+ });
105
+ var ui = {
106
+ tab: $this,
107
+ content: $this.next('div')
108
+ }
109
+ this._trigger('tabShown', null, ui);
110
+ },
111
+
112
+ // private helper method that used to show tabs
113
+ _hideTab: function ($this) {
114
+ var $span = $this.children('span.ui-icon');
115
+ var $div = $this.next();
116
+ var options = this.options;
117
+ $this.removeClass('ui-state-active ui-corner-top').addClass('ui-state-default ui-corner-all');
118
+ $span.removeClass('ui-icon-triangle-1-s').addClass('ui-icon-triangle-1-e');
119
+ $div.slideUp('fast', function () {
120
+ $div.removeClass(options._classes.divActive);
121
+ });
122
+ var ui = {
123
+ tab: $this,
124
+ content: $this.next('div')
125
+ }
126
+ this._trigger('tabHidden', null, ui);
127
+ },
128
+
129
+ // helper method to determine wether passed parameter is an index of an active tab or not
130
+ _isActive: function (num) {
131
+ var options = this.options;
132
+ // if array
133
+ if (typeof options.active == "boolean" && !options.active) {
134
+ return false;
135
+ } else {
136
+ if (options.active.length != undefined) {
137
+ for (var i = 0; i < options.active.length; i++) {
138
+ if (options.active[i] == num)
139
+ return true;
140
+ }
141
+ } else {
142
+ return options.active == num;
143
+ }
144
+ }
145
+ return false;
146
+ },
147
+
148
+ // return object contain currently opened tabs
149
+ _getActiveTabs: function () {
150
+ var $this = this.element;
151
+ var ui = [];
152
+ $this.children('div').each(function (index) {
153
+ var $content = $(this);
154
+ if ($content.is(':visible')) {
155
+ //ui = ui ? ui : [];
156
+ ui.push({
157
+ index: index,
158
+ tab: $content.prev('h3'),
159
+ content: $content
160
+ });
161
+ }
162
+ });
163
+ return (ui.length == 0 ? undefined : ui);
164
+ },
165
+
166
+ getActiveTabs: function () {
167
+ var el = this.element;
168
+ var tabs = [];
169
+ el.children('div').each(function (index) {
170
+ if ($(this).is(':visible')) {
171
+ tabs.push(index);
172
+ }
173
+ });
174
+ return (tabs.length == 0 ? [-1] : tabs);
175
+ },
176
+
177
+ // setting array of active tabs
178
+ _setActiveTabs: function (tabs) {
179
+ var self = this;
180
+ var $this = this.element;
181
+ if (typeof tabs != 'undefined') {
182
+ $this.children('div').each(function (index) {
183
+ var $tab = $(this).prev('h3');
184
+ if (hasObject(index)) {
185
+ self._showTab($tab);
186
+ } else {
187
+ self._hideTab($tab);
188
+ }
189
+ });
190
+ }
191
+ },
192
+
193
+ // active option passed by plugin, this method will read it and convert it into array of tab indexes
194
+ _generateTabsArrayFromOptions: function (tabOption) {
195
+ var tabs = [];
196
+ var self = this;
197
+ var $this = self.element;
198
+ var size = $this.children('h3').size();
199
+ if ($.type(tabOption) === 'array') {
200
+ return tabOption;
201
+ } else if ($.type(tabOption) === 'number') {
202
+ return [tabOption];
203
+ } else if ($.type(tabOption) === 'string') {
204
+ switch (tabOption.toLowerCase()) {
205
+ case 'all':
206
+ var size = $this.children('h3').size();
207
+ for (var n = 0; n < size; n++) {
208
+ tabs.push(n);
209
+ }
210
+ return tabs;
211
+ break;
212
+ case 'none':
213
+ tabs = [-1];
214
+ return tabs;
215
+ break;
216
+ default:
217
+ return undefined;
218
+ break;
219
+ }
220
+ }
221
+ },
222
+
223
+ // required method by jquery ui widget framework, used to provide the ability to pass options
224
+ // currently only active option is used here, may grow in the future
225
+ _setOption: function (option, value) {
226
+ $.Widget.prototype._setOption.apply(this, arguments);
227
+ var el = this.element;
228
+ switch (option) {
229
+ case 'active':
230
+ this._setActiveTabs(this._generateTabsArrayFromOptions(value));
231
+ break;
232
+ case 'getActiveTabs':
233
+ var el = this.element;
234
+ var tabs;
235
+ el.children('div').each(function (index) {
236
+ if ($(this).is(':visible')) {
237
+ tabs = tabs ? tabs : [];
238
+ tabs.push(index);
239
+ }
240
+ });
241
+ return (tabs.length == 0 ? [-1] : tabs);
242
+ break;
243
+ }
244
+ }
245
+
246
+ });
247
+
248
+ // helper array has object function
249
+ // thanks to @Vinko Vrsalovic
250
+ // http://stackoverflow.com/questions/143847/best-way-to-find-an-item-in-a-javascript-array
251
+ var hasObject = function (arr, o) {
252
+ var l = arr.length + 1;
253
+ while (l -= 1) {
254
+ if (arr[l - 1] === o) {
255
+ return true;
256
+ }
257
+ }
258
+ return false;
259
+ };
260
+
261
+ })(jQuery);