You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jqClock.js
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -141,12 +141,22 @@ if (!String.prototype.padStart) {
141
141
(function($,undefined){
142
142
143
143
$.clock={
144
-
"version": "2.2.40",
144
+
"version": "2.3.0",
145
145
"options": [
146
146
{
147
147
"type": "string",
148
148
"value": "destroy",
149
-
"description": "Passing in 'destroy' to an already initialized clock will remove the setTimeout for that clock from the global jqClock variable"
149
+
"description": "Passing in 'destroy' to an already initialized clock will remove the setTimeout for that clock to stop it from ticking, and remove all html markup and data associated with the plugin instance on the dom elements"
150
+
},
151
+
{
152
+
"type": "string",
153
+
"value": "stop",
154
+
"description": "Passing in 'stop' to an already initialized clock will clear the setTimeout for that clock to stop it from ticking"
155
+
},
156
+
{
157
+
"type": "string",
158
+
"value": "start",
159
+
"description": "Passing in 'start' to an already initialized clock will restart the setTimeout for that clock to get it ticking again, as though it had never lost time"
150
160
},
151
161
{"type": "object",
152
162
"description": "option set {}",
@@ -195,7 +205,12 @@ if (!String.prototype.padStart) {
195
205
}
196
206
]
197
207
}
198
-
]
208
+
],
209
+
"methods": {
210
+
"destroy": "Chaining clock().destroy() has the same effect as passing the 'destroy' option as in clock('destroy')",
211
+
"stop": "Chaining clock().stop() has the same effect as passing the 'stop' option as in clock('stop')",
212
+
"start": "Chaining clock().start() has the same effect as passing the 'start' option as in clock('start')"
0 commit comments