Skip to content

Commit

Permalink
0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasJang committed Feb 29, 2016
1 parent 8612335 commit 20a51b3
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 6 deletions.
7 changes: 6 additions & 1 deletion API-ax5-util.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ jQuery('#id').bind("click.app_expand", function(e){
if(target.id !== "client-aside"){
// some action
}
});
});
```

## ax5.util.cssNumber
Expand All @@ -440,4 +440,9 @@ console.log(ax5.util.css({
// background:#ccc;padding:50px;width:100px;
console.log(ax5.util.css('width:100px;padding: 50px; background: #ccc'));
// {width: "100px", padding: "50px", background: "#ccc"}
```

## ax5.util.stopEvent
```js
ax5.util.stopEvent(e);
```
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ax5core",
"version": "0.9.2",
"version": "0.9.3",
"authors": [
"ThomasJ <tom@axisj.com>"
],
Expand Down
20 changes: 19 additions & 1 deletion dist/ax5core.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,23 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
}
}

/**
* @method ax5.util.stopEvent
* @param {Event} e
* @example
* ```
* ax5.util.stopEvent(e);
* ```
*/
function stopEvent(e) {
// 이벤트 중지 구문
if (e.preventDefault) e.preventDefault();
if (e.stopPropagation) e.stopPropagation();
e.cancelBubble = true;
return false;
// 이벤트 중지 구문 끝
}

return {
alert: alert,
each: each,
Expand Down Expand Up @@ -1732,7 +1749,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
cssNumber: cssNumber,
css: css,
isDate: isDate,
isDateFormat: isDateFormat
isDateFormat: isDateFormat,
stopEvent: stopEvent
};
}();

Expand Down
2 changes: 1 addition & 1 deletion dist/ax5core.min.js
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ax5core",
"version": "0.9.2",
"version": "0.9.3",
"description": "`ax5core` is a collection of utility functions that have been designed for use in ax5ui",
"license": "MIT",
"repository": {
Expand Down
20 changes: 19 additions & 1 deletion src/ax5-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,23 @@
}
}

/**
* @method ax5.util.stopEvent
* @param {Event} e
* @example
* ```
* ax5.util.stopEvent(e);
* ```
*/
function stopEvent(e) {
// 이벤트 중지 구문
if (e.preventDefault) e.preventDefault();
if (e.stopPropagation) e.stopPropagation();
e.cancelBubble = true;
return false;
// 이벤트 중지 구문 끝
}

return {
alert: alert,
each: each,
Expand Down Expand Up @@ -1774,7 +1791,8 @@
cssNumber: cssNumber,
css: css,
isDate: isDate,
isDateFormat: isDateFormat
isDateFormat: isDateFormat,
stopEvent: stopEvent
}
})();

Expand Down

0 comments on commit 20a51b3

Please sign in to comment.