UNPKG

577 BJavaScriptView Raw
1/**
2 * @license
3 * MOST Web Framework 2.0 Codename Blueshift
4 * Copyright (c) 2017, THEMOST LP All rights reserved
5 *
6 * Use of this source code is governed by an BSD-3-Clause license that can be
7 * found in the LICENSE file at https://themost.io/license
8 */
9(function(window) {
10
11 var $ = window.jQuery;
12
13 $.fn.outerHTML = $.fn.outer = function () {
14 return $(this).clone().wrap('<div></div>').parent().html();
15 };
16
17 $.extend($.expr[':'],{
18 required: function(a) {
19 return $(a).attr('required') === 'required';
20 }
21 });
22})(window);
\No newline at end of file