Skip to content

Commit

Permalink
compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Feb 24, 2015
1 parent e9ee9e3 commit a264acc
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 31 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webshim",
"version": "1.15.6",
"version": "1.15.7",
"homepage": "https://github.com/aFarkas/webshim",
"authors": [
"aFarkas <info@corrupt-system.de>"
Expand Down
2 changes: 1 addition & 1 deletion demos/demos/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<div id="sidebar" class="interface">

<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.15.6</span>)</span></a>
<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.15.7</span>)</span></a>
<ul class="toc_section">
<li>
&raquo; <a href="https://github.com/aFarkas/webshim">GitHub Repository</a>
Expand Down
2 changes: 1 addition & 1 deletion demos/demos/mediaelement.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

<div id="sidebar" class="interface">

<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.15.6</span>)</span></a>
<a class="toc_title" href="../index.html"> Webshim <span class="version">(<span class="ws-version">1.15.7</span>)</span></a>
<ul class="toc_section">
<li>
&raquo; <a href="https://github.com/aFarkas/webshim">GitHub Repository</a>
Expand Down
4 changes: 2 additions & 2 deletions demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<div id="sidebar" class="interface">

<a class="toc_title"> Webshim <span class="version">(<span class="ws-version">1.15.6</span>)</span></a>
<a class="toc_title"> Webshim <span class="version">(<span class="ws-version">1.15.7</span>)</span></a>
<ul class="toc_section">
<li>
&raquo; <a href="https://github.com/aFarkas/webshim">GitHub Repository</a>
Expand Down Expand Up @@ -146,7 +146,7 @@
<h3 id="downloads">Downloads &amp; Dependencies</h3>
<span style="padding-left: 7px; font-size:11px; font-weight: normal;" class="interface">(Right-click, and use "Save As")</span>
<p>
<a href="https://github.com/aFarkas/webshim/archive/1.15.6.zip" class="download-button"> <strong><i>Download</i></strong> </a>
<a href="https://github.com/aFarkas/webshim/archive/1.15.7.zip" class="download-button"> <strong><i>Download</i></strong> </a>
</p>

<p>
Expand Down
49 changes: 26 additions & 23 deletions js-webshim/dev/shims/form-combat.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,32 @@ webshims.register('form-combat', function($,webshims){
webshims.info('detected use of '+ pName +' try to add support.');
}
};

addReplacement('select2', {
shadow: 'container',
shadowFocus: 'focusser',
_create: function(elem, shadow, shadowFocus, widgetData){

if(('container' in widgetData) && $.isFunction(widgetData.opened)){
var onValidate = function(e){
if (!webshims.wsPopover.isInElement([elem, shadow, shadowFocus, $(widgetData.container)], e.target)) {
$(elem).trigger('updatevalidation.webshims');
}
};

$(shadow).on('wsallowinstantvalidation', function(e, data){
$(document).off('focusin', onValidate);
if(data.type == 'focusout' && data.target != elem && widgetData.opened()){
$(document).on('focusin', onValidate);
return false;
}
});

if($.fn.select2){

addReplacement('select2', {
shadow: $.fn.select2.amd ? '$container' : 'container',
shadowFocus: $.fn.select2.amd ? '$selection' : 'focusser',
_create: function(elem, shadow, shadowFocus, widgetData){
if(('container' in widgetData) && $.isFunction(widgetData.opened)){
var onValidate = function(e){
if (!webshims.wsPopover.isInElement([elem, shadow, shadowFocus, $(widgetData.container)], e.target)) {
$(elem).trigger('updatevalidation.webshims');
}
};

$(shadow).on('wsallowinstantvalidation', function(e, data){
$(document).off('focusin', onValidate);
if(data.type == 'focusout' && data.target != elem && widgetData.opened()){
$(document).on('focusin', onValidate);
return false;
}
});
}
}
}
});
});
}

addReplacement('chosen', {
shadow: 'container',
shadowFocus: 'search_field'
Expand Down Expand Up @@ -120,6 +122,7 @@ webshims.register('form-combat', function($,webshims){
find.register = function(elem, data, pluginDescriptor, plugin){
var shadow = typeof pluginDescriptor.shadow == 'string' ? data[pluginDescriptor.shadow] : pluginDescriptor.shadow(data, elem);
var shadowFocus = typeof pluginDescriptor.shadowFocus == 'string' ? data[pluginDescriptor.shadowFocus] : pluginDescriptor.shadowFocus(data, elem);
console.log(data, arguments);
if(!shadowFocus){
shadowFocus = shadow;
}
Expand Down
2 changes: 1 addition & 1 deletion js-webshim/minified/shims/form-combat.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webshim",
"version": "1.15.6",
"version": "1.15.7",
"title": "Webshims - polyfills jQuery with many HTML5 features",
"licenses": [
{
Expand Down
2 changes: 1 addition & 1 deletion webshims.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webshims",
"version": "1.15.6",
"version": "1.15.7",
"title": "Webshim - polyfills jQuery with many HTML5 features",
"licenses" : [
{
Expand Down

0 comments on commit a264acc

Please sign in to comment.