mes 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +32 -0
  5. data/Rakefile +1 -0
  6. data/bin/mes +11 -0
  7. data/lib/middleman_ember_scaffold/cli/generators.rb +21 -0
  8. data/lib/middleman_ember_scaffold/cli.rb +91 -0
  9. data/lib/middleman_ember_scaffold/generators/scaffold.rb +22 -0
  10. data/lib/middleman_ember_scaffold/load_paths.rb +1 -0
  11. data/lib/middleman_ember_scaffold/template/Capfile +4 -0
  12. data/lib/middleman_ember_scaffold/template/Gemfile +10 -0
  13. data/lib/middleman_ember_scaffold/template/README.md +30 -0
  14. data/lib/middleman_ember_scaffold/template/component.json +14 -0
  15. data/lib/middleman_ember_scaffold/template/components/ember/component.json +20 -0
  16. data/lib/middleman_ember_scaffold/template/components/ember/ember.js +27755 -0
  17. data/lib/middleman_ember_scaffold/template/components/ember/ember.min.js +20 -0
  18. data/lib/middleman_ember_scaffold/template/components/ember-data/README.md +4 -0
  19. data/lib/middleman_ember_scaffold/template/components/ember-data/component.json +22 -0
  20. data/lib/middleman_ember_scaffold/template/components/ember-data/ember-data-spade.js +1 -0
  21. data/lib/middleman_ember_scaffold/template/components/ember-data/ember-data.amd.js +7819 -0
  22. data/lib/middleman_ember_scaffold/template/components/ember-data/ember-data.js +8769 -0
  23. data/lib/middleman_ember_scaffold/template/components/ember-data/ember-data.min.js +12 -0
  24. data/lib/middleman_ember_scaffold/template/components/ember-data/ember-data.prod.js +7802 -0
  25. data/lib/middleman_ember_scaffold/template/components/handlebars/component.json +17 -0
  26. data/lib/middleman_ember_scaffold/template/components/handlebars/handlebars.js +2201 -0
  27. data/lib/middleman_ember_scaffold/template/components/handlebars/handlebars.runtime.js +321 -0
  28. data/lib/middleman_ember_scaffold/template/components/jquery/component.json +14 -0
  29. data/lib/middleman_ember_scaffold/template/components/jquery/composer.json +26 -0
  30. data/lib/middleman_ember_scaffold/template/components/jquery/jquery-migrate.js +496 -0
  31. data/lib/middleman_ember_scaffold/template/components/jquery/jquery-migrate.min.js +3 -0
  32. data/lib/middleman_ember_scaffold/template/components/jquery/jquery.js +9597 -0
  33. data/lib/middleman_ember_scaffold/template/components/jquery/jquery.min.js +5 -0
  34. data/lib/middleman_ember_scaffold/template/config/deploy.rb +66 -0
  35. data/lib/middleman_ember_scaffold/template/config.rb +91 -0
  36. data/lib/middleman_ember_scaffold/template/source/app/application.coffee +15 -0
  37. data/lib/middleman_ember_scaffold/template/source/app/controllers/application_controller.coffee +1 -0
  38. data/lib/middleman_ember_scaffold/template/source/app/controllers/index_controller.coffee +1 -0
  39. data/lib/middleman_ember_scaffold/template/source/app/main.coffee +17 -0
  40. data/lib/middleman_ember_scaffold/template/source/app/models/foo.coffee +1 -0
  41. data/lib/middleman_ember_scaffold/template/source/app/routes.coffee +11 -0
  42. data/lib/middleman_ember_scaffold/template/source/app/views/application_view.coffee +2 -0
  43. data/lib/middleman_ember_scaffold/template/source/app/views/index_view.coffee +2 -0
  44. data/lib/middleman_ember_scaffold/template/source/index.html.haml +1 -0
  45. data/lib/middleman_ember_scaffold/template/source/layout.haml +8 -0
  46. data/lib/middleman_ember_scaffold/template/source/stylesheets/application.css.scss +2 -0
  47. data/lib/middleman_ember_scaffold/template/source/stylesheets/variables.scss +279 -0
  48. data/lib/middleman_ember_scaffold/template/source/templates_emblem/application/index.emblem +2 -0
  49. data/lib/middleman_ember_scaffold/template/source/templates_emblem/application.emblem +4 -0
  50. data/lib/middleman_ember_scaffold/template/vendor/javascripts/.gitkeep +0 -0
  51. data/lib/middleman_ember_scaffold/template/vendor/javascripts/bootstrap-dropdown.js +165 -0
  52. data/lib/middleman_ember_scaffold/template/vendor/javascripts/bootstrap-modal.js +374 -0
  53. data/lib/middleman_ember_scaffold/template/vendor/javascripts/bootstrap-modalmanager.js +412 -0
  54. data/lib/middleman_ember_scaffold/template/vendor/javascripts/bootstrap-popover.js +114 -0
  55. data/lib/middleman_ember_scaffold/template/vendor/javascripts/bootstrap-tabs.js +144 -0
  56. data/lib/middleman_ember_scaffold/template/vendor/javascripts/bootstrap-tooltip.js +361 -0
  57. data/lib/middleman_ember_scaffold/template/vendor/javascripts/date.js +104 -0
  58. data/lib/middleman_ember_scaffold/template/vendor/javascripts/ember-data.js +8769 -0
  59. data/lib/middleman_ember_scaffold/template/vendor/javascripts/ember.js +27755 -0
  60. data/lib/middleman_ember_scaffold/template/vendor/javascripts/handlebars.js +2201 -0
  61. data/lib/middleman_ember_scaffold/template/vendor/javascripts/jquery.js +9597 -0
  62. data/lib/middleman_ember_scaffold/template/vendor/javascripts/jquery.validate.min.js +2 -0
  63. data/lib/middleman_ember_scaffold/template/vendor/javascripts/json2.js +480 -0
  64. data/lib/middleman_ember_scaffold/template/vendor/javascripts/underscore.js +1 -0
  65. data/lib/middleman_ember_scaffold/template/vendor/javascripts/utils.js +19 -0
  66. data/lib/middleman_ember_scaffold/template/vendor/stylesheets/.gitkeep +0 -0
  67. data/lib/middleman_ember_scaffold/template/watch +2 -0
  68. data/lib/middleman_ember_scaffold/version.rb +3 -0
  69. data/lib/middleman_ember_scaffold.rb +5 -0
  70. data/mes.gemspec +24 -0
  71. metadata +167 -0
@@ -0,0 +1,496 @@
1
+ /*!
2
+ * jQuery Migrate - v1.1.0 - 2013-01-31
3
+ * https://github.com/jquery/jquery-migrate
4
+ * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
5
+ */
6
+ (function( jQuery, window, undefined ) {
7
+ "use strict";
8
+
9
+
10
+ var warnedAbout = {};
11
+
12
+ // List of warnings already given; public read only
13
+ jQuery.migrateWarnings = [];
14
+
15
+ // Set to true to prevent console output; migrateWarnings still maintained
16
+ // jQuery.migrateMute = false;
17
+
18
+ // Show a message on the console so devs know we're active
19
+ if ( !jQuery.migrateMute && window.console && console.log ) {
20
+ console.log("JQMIGRATE: Logging is active");
21
+ }
22
+
23
+ // Set to false to disable traces that appear with warnings
24
+ if ( jQuery.migrateTrace === undefined ) {
25
+ jQuery.migrateTrace = true;
26
+ }
27
+
28
+ // Forget any warnings we've already given; public
29
+ jQuery.migrateReset = function() {
30
+ warnedAbout = {};
31
+ jQuery.migrateWarnings.length = 0;
32
+ };
33
+
34
+ function migrateWarn( msg) {
35
+ if ( !warnedAbout[ msg ] ) {
36
+ warnedAbout[ msg ] = true;
37
+ jQuery.migrateWarnings.push( msg );
38
+ if ( window.console && console.warn && !jQuery.migrateMute ) {
39
+ console.warn( "JQMIGRATE: " + msg );
40
+ if ( jQuery.migrateTrace && console.trace ) {
41
+ console.trace();
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ function migrateWarnProp( obj, prop, value, msg ) {
48
+ if ( Object.defineProperty ) {
49
+ // On ES5 browsers (non-oldIE), warn if the code tries to get prop;
50
+ // allow property to be overwritten in case some other plugin wants it
51
+ try {
52
+ Object.defineProperty( obj, prop, {
53
+ configurable: true,
54
+ enumerable: true,
55
+ get: function() {
56
+ migrateWarn( msg );
57
+ return value;
58
+ },
59
+ set: function( newValue ) {
60
+ migrateWarn( msg );
61
+ value = newValue;
62
+ }
63
+ });
64
+ return;
65
+ } catch( err ) {
66
+ // IE8 is a dope about Object.defineProperty, can't warn there
67
+ }
68
+ }
69
+
70
+ // Non-ES5 (or broken) browser; just set the property
71
+ jQuery._definePropertyBroken = true;
72
+ obj[ prop ] = value;
73
+ }
74
+
75
+ if ( document.compatMode === "BackCompat" ) {
76
+ // jQuery has never supported or tested Quirks Mode
77
+ migrateWarn( "jQuery is not compatible with Quirks Mode" );
78
+ }
79
+
80
+
81
+ var attrFn = {},
82
+ oldAttr = jQuery.attr,
83
+ valueAttrGet = jQuery.attrHooks.value && jQuery.attrHooks.value.get ||
84
+ function() { return null; },
85
+ valueAttrSet = jQuery.attrHooks.value && jQuery.attrHooks.value.set ||
86
+ function() { return undefined; },
87
+ rnoType = /^(?:input|button)$/i,
88
+ rnoAttrNodeType = /^[238]$/,
89
+ rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
90
+ ruseDefault = /^(?:checked|selected)$/i;
91
+
92
+ // jQuery.attrFn
93
+ migrateWarnProp( jQuery, "attrFn", attrFn, "jQuery.attrFn is deprecated" );
94
+
95
+ jQuery.attr = function( elem, name, value, pass ) {
96
+ var lowerName = name.toLowerCase(),
97
+ nType = elem && elem.nodeType;
98
+
99
+ // Since pass is used internally, we only warn and shim for new jQuery
100
+ // versions where there isn't a pass arg in the formal params
101
+ if ( pass && oldAttr.length < 4 ) {
102
+ migrateWarn("jQuery.fn.attr( props, pass ) is deprecated");
103
+ if ( elem && !rnoAttrNodeType.test( nType ) && jQuery.isFunction( jQuery.fn[ name ] ) ) {
104
+ return jQuery( elem )[ name ]( value );
105
+ }
106
+ }
107
+
108
+ // Warn if user tries to set `type`, since it breaks on IE 6/7/8; by checking
109
+ // for disconnected elements we don't warn on $( "<button>", { type: "button" } ).
110
+ if ( name === "type" && value !== undefined && rnoType.test( elem.nodeName ) && elem.parentNode ) {
111
+ migrateWarn("Can't change the 'type' of an input or button in IE 6/7/8");
112
+ }
113
+
114
+ // Restore boolHook for boolean property/attribute synchronization
115
+ if ( !jQuery.attrHooks[ lowerName ] && rboolean.test( lowerName ) ) {
116
+ jQuery.attrHooks[ lowerName ] = {
117
+ get: function( elem, name ) {
118
+ // Align boolean attributes with corresponding properties
119
+ // Fall back to attribute presence where some booleans are not supported
120
+ var attrNode,
121
+ property = jQuery.prop( elem, name );
122
+ return property === true || typeof property !== "boolean" &&
123
+ ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
124
+
125
+ name.toLowerCase() :
126
+ undefined;
127
+ },
128
+ set: function( elem, value, name ) {
129
+ var propName;
130
+ if ( value === false ) {
131
+ // Remove boolean attributes when set to false
132
+ jQuery.removeAttr( elem, name );
133
+ } else {
134
+ // value is true since we know at this point it's type boolean and not false
135
+ // Set boolean attributes to the same name and set the DOM property
136
+ propName = jQuery.propFix[ name ] || name;
137
+ if ( propName in elem ) {
138
+ // Only set the IDL specifically if it already exists on the element
139
+ elem[ propName ] = true;
140
+ }
141
+
142
+ elem.setAttribute( name, name.toLowerCase() );
143
+ }
144
+ return name;
145
+ }
146
+ };
147
+
148
+ // Warn only for attributes that can remain distinct from their properties post-1.9
149
+ if ( ruseDefault.test( lowerName ) ) {
150
+ migrateWarn( "jQuery.fn.attr('" + lowerName + "') may use property instead of attribute" );
151
+ }
152
+ }
153
+
154
+ return oldAttr.call( jQuery, elem, name, value );
155
+ };
156
+
157
+ // attrHooks: value
158
+ jQuery.attrHooks.value = {
159
+ get: function( elem, name ) {
160
+ var nodeName = ( elem.nodeName || "" ).toLowerCase();
161
+ if ( nodeName === "button" ) {
162
+ return valueAttrGet.apply( this, arguments );
163
+ }
164
+ if ( nodeName !== "input" && nodeName !== "option" ) {
165
+ migrateWarn("jQuery.fn.attr('value') no longer gets properties");
166
+ }
167
+ return name in elem ?
168
+ elem.value :
169
+ null;
170
+ },
171
+ set: function( elem, value ) {
172
+ var nodeName = ( elem.nodeName || "" ).toLowerCase();
173
+ if ( nodeName === "button" ) {
174
+ return valueAttrSet.apply( this, arguments );
175
+ }
176
+ if ( nodeName !== "input" && nodeName !== "option" ) {
177
+ migrateWarn("jQuery.fn.attr('value', val) no longer sets properties");
178
+ }
179
+ // Does not return so that setAttribute is also used
180
+ elem.value = value;
181
+ }
182
+ };
183
+
184
+
185
+ var matched, browser,
186
+ oldInit = jQuery.fn.init,
187
+ oldParseJSON = jQuery.parseJSON,
188
+ // Note this does NOT include the #9521 XSS fix from 1.7!
189
+ rquickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*|#([\w\-]*))$/;
190
+
191
+ // $(html) "looks like html" rule change
192
+ jQuery.fn.init = function( selector, context, rootjQuery ) {
193
+ var match;
194
+
195
+ if ( selector && typeof selector === "string" && !jQuery.isPlainObject( context ) &&
196
+ (match = rquickExpr.exec( selector )) && match[1] ) {
197
+ // This is an HTML string according to the "old" rules; is it still?
198
+ if ( selector.charAt( 0 ) !== "<" ) {
199
+ migrateWarn("$(html) HTML strings must start with '<' character");
200
+ }
201
+ // Now process using loose rules; let pre-1.8 play too
202
+ if ( context && context.context ) {
203
+ // jQuery object as context; parseHTML expects a DOM object
204
+ context = context.context;
205
+ }
206
+ if ( jQuery.parseHTML ) {
207
+ return oldInit.call( this, jQuery.parseHTML( jQuery.trim(selector), context, true ),
208
+ context, rootjQuery );
209
+ }
210
+ }
211
+ return oldInit.apply( this, arguments );
212
+ };
213
+ jQuery.fn.init.prototype = jQuery.fn;
214
+
215
+ // Let $.parseJSON(falsy_value) return null
216
+ jQuery.parseJSON = function( json ) {
217
+ if ( !json && json !== null ) {
218
+ migrateWarn("jQuery.parseJSON requires a valid JSON string");
219
+ return null;
220
+ }
221
+ return oldParseJSON.apply( this, arguments );
222
+ };
223
+
224
+ jQuery.uaMatch = function( ua ) {
225
+ ua = ua.toLowerCase();
226
+
227
+ var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
228
+ /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
229
+ /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
230
+ /(msie) ([\w.]+)/.exec( ua ) ||
231
+ ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
232
+ [];
233
+
234
+ return {
235
+ browser: match[ 1 ] || "",
236
+ version: match[ 2 ] || "0"
237
+ };
238
+ };
239
+
240
+ matched = jQuery.uaMatch( navigator.userAgent );
241
+ browser = {};
242
+
243
+ if ( matched.browser ) {
244
+ browser[ matched.browser ] = true;
245
+ browser.version = matched.version;
246
+ }
247
+
248
+ // Chrome is Webkit, but Webkit is also Safari.
249
+ if ( browser.chrome ) {
250
+ browser.webkit = true;
251
+ } else if ( browser.webkit ) {
252
+ browser.safari = true;
253
+ }
254
+
255
+ jQuery.browser = browser;
256
+
257
+ // Warn if the code tries to get jQuery.browser
258
+ migrateWarnProp( jQuery, "browser", browser, "jQuery.browser is deprecated" );
259
+
260
+ jQuery.sub = function() {
261
+ function jQuerySub( selector, context ) {
262
+ return new jQuerySub.fn.init( selector, context );
263
+ }
264
+ jQuery.extend( true, jQuerySub, this );
265
+ jQuerySub.superclass = this;
266
+ jQuerySub.fn = jQuerySub.prototype = this();
267
+ jQuerySub.fn.constructor = jQuerySub;
268
+ jQuerySub.sub = this.sub;
269
+ jQuerySub.fn.init = function init( selector, context ) {
270
+ if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
271
+ context = jQuerySub( context );
272
+ }
273
+
274
+ return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
275
+ };
276
+ jQuerySub.fn.init.prototype = jQuerySub.fn;
277
+ var rootjQuerySub = jQuerySub(document);
278
+ migrateWarn( "jQuery.sub() is deprecated" );
279
+ return jQuerySub;
280
+ };
281
+
282
+
283
+ var oldFnData = jQuery.fn.data;
284
+
285
+ jQuery.fn.data = function( name ) {
286
+ var ret, evt,
287
+ elem = this[0];
288
+
289
+ // Handles 1.7 which has this behavior and 1.8 which doesn't
290
+ if ( elem && name === "events" && arguments.length === 1 ) {
291
+ ret = jQuery.data( elem, name );
292
+ evt = jQuery._data( elem, name );
293
+ if ( ( ret === undefined || ret === evt ) && evt !== undefined ) {
294
+ migrateWarn("Use of jQuery.fn.data('events') is deprecated");
295
+ return evt;
296
+ }
297
+ }
298
+ return oldFnData.apply( this, arguments );
299
+ };
300
+
301
+
302
+ var rscriptType = /\/(java|ecma)script/i,
303
+ oldSelf = jQuery.fn.andSelf || jQuery.fn.addBack;
304
+
305
+ jQuery.fn.andSelf = function() {
306
+ migrateWarn("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");
307
+ return oldSelf.apply( this, arguments );
308
+ };
309
+
310
+ // Since jQuery.clean is used internally on older versions, we only shim if it's missing
311
+ if ( !jQuery.clean ) {
312
+ jQuery.clean = function( elems, context, fragment, scripts ) {
313
+ // Set context per 1.8 logic
314
+ context = context || document;
315
+ context = !context.nodeType && context[0] || context;
316
+ context = context.ownerDocument || context;
317
+
318
+ migrateWarn("jQuery.clean() is deprecated");
319
+
320
+ var i, elem, handleScript, jsTags,
321
+ ret = [];
322
+
323
+ jQuery.merge( ret, jQuery.buildFragment( elems, context ).childNodes );
324
+
325
+ // Complex logic lifted directly from jQuery 1.8
326
+ if ( fragment ) {
327
+ // Special handling of each script element
328
+ handleScript = function( elem ) {
329
+ // Check if we consider it executable
330
+ if ( !elem.type || rscriptType.test( elem.type ) ) {
331
+ // Detach the script and store it in the scripts array (if provided) or the fragment
332
+ // Return truthy to indicate that it has been handled
333
+ return scripts ?
334
+ scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) :
335
+ fragment.appendChild( elem );
336
+ }
337
+ };
338
+
339
+ for ( i = 0; (elem = ret[i]) != null; i++ ) {
340
+ // Check if we're done after handling an executable script
341
+ if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) {
342
+ // Append to fragment and handle embedded scripts
343
+ fragment.appendChild( elem );
344
+ if ( typeof elem.getElementsByTagName !== "undefined" ) {
345
+ // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
346
+ jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
347
+
348
+ // Splice the scripts into ret after their former ancestor and advance our index beyond them
349
+ ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
350
+ i += jsTags.length;
351
+ }
352
+ }
353
+ }
354
+ }
355
+
356
+ return ret;
357
+ };
358
+ }
359
+
360
+ var eventAdd = jQuery.event.add,
361
+ eventRemove = jQuery.event.remove,
362
+ eventTrigger = jQuery.event.trigger,
363
+ oldToggle = jQuery.fn.toggle,
364
+ oldLive = jQuery.fn.live,
365
+ oldDie = jQuery.fn.die,
366
+ ajaxEvents = "ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",
367
+ rajaxEvent = new RegExp( "\\b(?:" + ajaxEvents + ")\\b" ),
368
+ rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
369
+ hoverHack = function( events ) {
370
+ if ( typeof( events ) != "string" || jQuery.event.special.hover ) {
371
+ return events;
372
+ }
373
+ if ( rhoverHack.test( events ) ) {
374
+ migrateWarn("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'");
375
+ }
376
+ return events && events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
377
+ };
378
+
379
+ // Event props removed in 1.9, put them back if needed; no practical way to warn them
380
+ if ( jQuery.event.props && jQuery.event.props[ 0 ] !== "attrChange" ) {
381
+ jQuery.event.props.unshift( "attrChange", "attrName", "relatedNode", "srcElement" );
382
+ }
383
+
384
+ // Undocumented jQuery.event.handle was "deprecated" in jQuery 1.7
385
+ if ( jQuery.event.dispatch ) {
386
+ migrateWarnProp( jQuery.event, "handle", jQuery.event.dispatch, "jQuery.event.handle is undocumented and deprecated" );
387
+ }
388
+
389
+ // Support for 'hover' pseudo-event and ajax event warnings
390
+ jQuery.event.add = function( elem, types, handler, data, selector ){
391
+ if ( elem !== document && rajaxEvent.test( types ) ) {
392
+ migrateWarn( "AJAX events should be attached to document: " + types );
393
+ }
394
+ eventAdd.call( this, elem, hoverHack( types || "" ), handler, data, selector );
395
+ };
396
+ jQuery.event.remove = function( elem, types, handler, selector, mappedTypes ){
397
+ eventRemove.call( this, elem, hoverHack( types ) || "", handler, selector, mappedTypes );
398
+ };
399
+
400
+ jQuery.fn.error = function() {
401
+ var args = Array.prototype.slice.call( arguments, 0);
402
+ migrateWarn("jQuery.fn.error() is deprecated");
403
+ args.splice( 0, 0, "error" );
404
+ if ( arguments.length ) {
405
+ return this.bind.apply( this, args );
406
+ }
407
+ // error event should not bubble to window, although it does pre-1.7
408
+ this.triggerHandler.apply( this, args );
409
+ return this;
410
+ };
411
+
412
+ jQuery.fn.toggle = function( fn, fn2 ) {
413
+
414
+ // Don't mess with animation or css toggles
415
+ if ( !jQuery.isFunction( fn ) || !jQuery.isFunction( fn2 ) ) {
416
+ return oldToggle.apply( this, arguments );
417
+ }
418
+ migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated");
419
+
420
+ // Save reference to arguments for access in closure
421
+ var args = arguments,
422
+ guid = fn.guid || jQuery.guid++,
423
+ i = 0,
424
+ toggler = function( event ) {
425
+ // Figure out which function to execute
426
+ var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
427
+ jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
428
+
429
+ // Make sure that clicks stop
430
+ event.preventDefault();
431
+
432
+ // and execute the function
433
+ return args[ lastToggle ].apply( this, arguments ) || false;
434
+ };
435
+
436
+ // link all the functions, so any of them can unbind this click handler
437
+ toggler.guid = guid;
438
+ while ( i < args.length ) {
439
+ args[ i++ ].guid = guid;
440
+ }
441
+
442
+ return this.click( toggler );
443
+ };
444
+
445
+ jQuery.fn.live = function( types, data, fn ) {
446
+ migrateWarn("jQuery.fn.live() is deprecated");
447
+ if ( oldLive ) {
448
+ return oldLive.apply( this, arguments );
449
+ }
450
+ jQuery( this.context ).on( types, this.selector, data, fn );
451
+ return this;
452
+ };
453
+
454
+ jQuery.fn.die = function( types, fn ) {
455
+ migrateWarn("jQuery.fn.die() is deprecated");
456
+ if ( oldDie ) {
457
+ return oldDie.apply( this, arguments );
458
+ }
459
+ jQuery( this.context ).off( types, this.selector || "**", fn );
460
+ return this;
461
+ };
462
+
463
+ // Turn global events into document-triggered events
464
+ jQuery.event.trigger = function( event, data, elem, onlyHandlers ){
465
+ if ( !elem & !rajaxEvent.test( event ) ) {
466
+ migrateWarn( "Global events are undocumented and deprecated" );
467
+ }
468
+ return eventTrigger.call( this, event, data, elem || document, onlyHandlers );
469
+ };
470
+ jQuery.each( ajaxEvents.split("|"),
471
+ function( _, name ) {
472
+ jQuery.event.special[ name ] = {
473
+ setup: function() {
474
+ var elem = this;
475
+
476
+ // The document needs no shimming; must be !== for oldIE
477
+ if ( elem !== document ) {
478
+ jQuery.event.add( document, name + "." + jQuery.guid, function() {
479
+ jQuery.event.trigger( name, null, elem, true );
480
+ });
481
+ jQuery._data( this, name, jQuery.guid++ );
482
+ }
483
+ return false;
484
+ },
485
+ teardown: function() {
486
+ if ( this !== document ) {
487
+ jQuery.event.remove( document, name + "." + jQuery._data( this, name ) );
488
+ }
489
+ return false;
490
+ }
491
+ };
492
+ }
493
+ );
494
+
495
+
496
+ })( jQuery, window );
@@ -0,0 +1,3 @@
1
+ /*! jQuery Migrate v1.1.0 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */
2
+ jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){"use strict";function r(n){o[n]||(o[n]=!0,e.migrateWarnings.push(n),t.console&&console.warn&&!e.migrateMute&&(console.warn("JQMIGRATE: "+n),e.migrateTrace&&console.trace&&console.trace()))}function a(t,a,o,i){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(i),o},set:function(e){r(i),o=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=o}var o={};e.migrateWarnings=[],!e.migrateMute&&t.console&&console.log&&console.log("JQMIGRATE: Logging is active"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){o={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&r("jQuery is not compatible with Quirks Mode");var i={},s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,"attrFn",i,"jQuery.attrFn is deprecated"),e.attr=function(t,a,o,i){var u=a.toLowerCase(),c=t&&t.nodeType;return i&&4>s.length&&(r("jQuery.fn.attr( props, pass ) is deprecated"),t&&!d.test(c)&&e.isFunction(e.fn[a]))?e(t)[a](o):("type"===a&&o!==n&&l.test(t.nodeName)&&t.parentNode&&r("Can't change the 'type' of an input or button in IE 6/7/8"),!e.attrHooks[u]&&p.test(u)&&(e.attrHooks[u]={get:function(t,r){var a,o=e.prop(t,r);return o===!0||"boolean"!=typeof o&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(u)&&r("jQuery.fn.attr('"+u+"') may use property instead of attribute")),s.call(e,t,a,o))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||"").toLowerCase();return"button"===n?u.apply(this,arguments):("input"!==n&&"option"!==n&&r("jQuery.fn.attr('value') no longer gets properties"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||"").toLowerCase();return"button"===a?c.apply(this,arguments):("input"!==a&&"option"!==a&&r("jQuery.fn.attr('value', val) no longer sets properties"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^(?:[^<]*(<[\w\W]+>)[^>]*|#([\w\-]*))$/;e.fn.init=function(t,n,a){var o;return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=y.exec(t))&&o[1]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(e.trim(t),n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r("jQuery.parseJSON requires a valid JSON string"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||0>e.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h,a(e,"browser",h,"jQuery.browser is deprecated"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r("jQuery.sub() is deprecated"),t};var b=e.fn.data;e.fn.data=function(t){var a,o,i=this[0];return!i||"events"!==t||1!==arguments.length||(a=e.data(i,t),o=e._data(i,t),a!==n&&a!==o||o===n)?b.apply(this,arguments):(r("Use of jQuery.fn.data('events') is deprecated"),o)};var j=/\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,o,i){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r("jQuery.clean() is deprecated");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),o)for(c=function(e){return!e.type||j.test(e.type)?i?i.push(e.parentNode?e.parentNode.removeChild(e):e):o.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,"script")&&c(u)||(o.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName("script")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,C=e.fn.live,T=e.fn.die,M="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",S=RegExp("\\b(?:"+M+")\\b"),H=/(?:^|\s)hover(\.\S+|)\b/,A=function(t){return"string"!=typeof t||e.event.special.hover?t:(H.test(t)&&r("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),t&&t.replace(H,"mouseenter$1 mouseleave$1"))};e.event.props&&"attrChange"!==e.event.props[0]&&e.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),e.event.dispatch&&a(e.event,"handle",e.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),e.event.add=function(e,t,n,a,o){e!==document&&S.test(t)&&r("AJAX events should be attached to document: "+t),Q.call(this,e,A(t||""),n,a,o)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||"",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r("jQuery.fn.error() is deprecated"),e.splice(0,0,"error"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r("jQuery.fn.toggle(handler, handler...) is deprecated");var a=arguments,o=t.guid||e.guid++,i=0,s=function(n){var r=(e._data(this,"lastToggle"+t.guid)||0)%i;return e._data(this,"lastToggle"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=o;a.length>i;)a[i++].guid=o;return this.click(s)},e.fn.live=function(t,n,a){return r("jQuery.fn.live() is deprecated"),C?C.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r("jQuery.fn.die() is deprecated"),T?T.apply(this,arguments):(e(this.context).off(t,this.selector||"**",n),this)},e.event.trigger=function(e,t,n,a){return!n&!S.test(e)&&r("Global events are undocumented and deprecated"),k.call(this,e,t,n||document,a)},e.each(M.split("|"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+"."+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+"."+e._data(this,n)),!1}}})}(jQuery,window);
3
+ //@ sourceMappingURL=dist/jquery-migrate.min.map