Skip to content

Commit

Permalink
1.2.12
Browse files Browse the repository at this point in the history
Fixed #45.
  • Loading branch information
ermouth committed Nov 4, 2017
1 parent 5bce4a0 commit 8a103e5
Show file tree
Hide file tree
Showing 8 changed files with 4,520 additions and 25 deletions.
4,497 changes: 4,497 additions & 0 deletions Release/1.2/jquerymy-1.2.12.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Release/1.2/jquerymy-1.2.12.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Release/jquery.my.last.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquerymy",
"version": "1.2.11",
"version": "1.2.12",
"description": "A lightweight jQuery plugin for complex two-way data binding in real time.",
"main": "./jquerymy.js",
"authors": [
Expand Down
23 changes: 8 additions & 15 deletions jquerymy.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
/*
* jQuery.my 1.2.11
* jQuery.my 1.2.12
* Requires jQuery 2.0+, SugarJS 1.3.9-1.4.x
*
* — fixed inability of $.my.modal to close popup
* when source pivot DOM node was removed
* — other minor fixes in $.my.modal
* — fixed #45
* — no more support of $.tagstrip which was never published
*
* More details at jquerymy.com
*
* (c) @ermouth, thanks @carpogoryanin, @ftescht
* 2017-10-10
* 2017-11-04
*/

;(function ($) {

var _version = "1.2.11";
var _version = "1.2.12";

// Some shortcuts and constants
var TMP, lang = "en",
Expand Down Expand Up @@ -316,19 +315,14 @@
},

"input": ({
"[type='text'],[type='number'],[type='search'],[type='hidden'],[type='password'],[type='button'],[type='range'],:not([type])":{
"[type='text'],[type='number'],[type='button'],[type='range'],[type='hidden'],:not([type])":{
//nearly all main input types and button

".ui-slider-input": function ($o,v) {
//input with jQ UI slider() applied
if (n(v)) $o.val(v).slider("refresh");
},

".tagstrip input.value": function ($o,v) {
//input of tagstrip() applied
if (n(v)) $o.val(v).trigger("update");
},

"div.select2-container+input": function ($o, v) {
//select2
if (n(v) && JSON.stringify(v)!== JSON.stringify($o.select2("val")))
Expand All @@ -338,6 +332,8 @@

"": function ($o,v) {if(n(v)) $o.val(v+"");}
},

"[type='password'],[type='tel'],[type='email'],[type='search']": function ($o,v) {if(n(v)) $o.val(v+"");},

":radio":function ($o,v) {
//radio buttons
Expand Down Expand Up @@ -571,9 +567,6 @@
return $o.parents('[data-role="fieldcontain"]').eq(0);
}
},
".tagstrip *.value": function ($o){ //$.tagstrip()
return $o.parents('.tagstrip').eq(0);
},
"div.redactor_box textarea":function ($o){
return $o.parents('div.redactor_box').eq(0).parent();
},
Expand Down
6 changes: 3 additions & 3 deletions jquerymy.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion my.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": [
"MVVM", "framework", "ui", "form", "validation", "data binding"
],
"version": "1.2.11",
"version": "1.2.12",
"author": {
"name": "ermouth",
"url": "https://github.com/ermouth"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquerymy",
"version": "1.2.11",
"version": "1.2.12",
"description": "A lightweight jQuery plugin for complex two-way data binding in real time.",
"homepage": "http://jquerymy.com/",
"author": "ermouth <[email protected]>",
Expand Down Expand Up @@ -28,7 +28,7 @@

"dependencies": {
"jquery":"~2",
"sugar":"~1.4"
"sugar":"1.4.x"
},

"license": "MIT"
Expand Down

0 comments on commit 8a103e5

Please sign in to comment.