Skip to content

Commit f217ecb

Browse files
author
William Troup
authored
Merge pull request #12 from williamtroup/0.8.2
0.8.2
2 parents fe26dc5 + 22e239a commit f217ecb

16 files changed

+71
-34
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Observe.js
33

44
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Observe.js%2C%20a%20free%20JavaScript%observe%builder&url=https://github.com/williamtroup/Observe.js&hashtags=javascript,html,observe)
5-
[![npm](https://img.shields.io/badge/npmjs-v0.8.1-blue)](https://www.npmjs.com/package/jobserve.js)
6-
[![nuget](https://img.shields.io/badge/nuget-v0.8.1-purple)](https://www.nuget.org/packages/jObserve.js/)
5+
[![npm](https://img.shields.io/badge/npmjs-v0.8.2-blue)](https://www.npmjs.com/package/jobserve.js)
6+
[![nuget](https://img.shields.io/badge/nuget-v0.8.2-purple)](https://www.nuget.org/packages/jObserve.js/)
77
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Observe.js/blob/main/LICENSE.txt)
88
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Observe.js/discussions)
99
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://www.william-troup.com/)
1010
</h1>
1111

1212
> <p align="center">A lightweight JavaScript library that allows developers to keep track of changes to JavaScript objects and/or DOM elements.</p>
13-
> <p align="center">v0.8.1</p>
13+
> <p align="center">v0.8.2</p>
1414
<br />
1515
<br>
1616
@@ -78,7 +78,7 @@ Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows
7878
### 3. DOM Element Binding / Object Watching:
7979

8080
```markdown
81-
<div data-observe-watch-options="{ 'onChange': yourCustomJsFunction }">
81+
<div data-observe-js="{ 'onChange': yourCustomJsFunction }">
8282
Your HTML.
8383
</div>
8484
```
@@ -91,9 +91,9 @@ Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows
9191
</script>
9292
```
9393

94-
To see a list of all the available binding options you can use for "data-observe-watch-options", and "watch()", click [here](docs/binding/options/OPTIONS.md).
94+
To see a list of all the available binding options you can use for "data-observe-js", and "watch()", click [here](docs/binding/options/OPTIONS.md).
9595

96-
To see a list of all the available custom triggers you can use for "data-observe-watch-options", and "watch()", click [here](docs/binding/options/CUSTOM_TRIGGERS.md).
96+
To see a list of all the available custom triggers you can use for "data-observe-js", and "watch()", click [here](docs/binding/options/CUSTOM_TRIGGERS.md).
9797

9898
<br>
9999

README_NUGET.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Observe.js v0.8.1
1+
# Observe.js v0.8.2
22

33
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Observe.js%2C%20a%20free%20JavaScript%observe%builder&url=https://github.com/williamtroup/Observe.js&hashtags=javascript,html,observe)
4-
[![npm](https://img.shields.io/badge/npmjs-v0.8.1-blue)](https://www.npmjs.com/package/jobserve.js)
5-
[![nuget](https://img.shields.io/badge/nuget-v0.8.1-purple)](https://www.nuget.org/packages/jObserve.js/)
4+
[![npm](https://img.shields.io/badge/npmjs-v0.8.2-blue)](https://www.npmjs.com/package/jobserve.js)
5+
[![nuget](https://img.shields.io/badge/nuget-v0.8.2-purple)](https://www.nuget.org/packages/jObserve.js/)
66
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/Observe.js/blob/main/LICENSE.txt)
77
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/Observe.js/discussions)
88
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://www.william-troup.com/)
@@ -62,7 +62,7 @@ Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows
6262
### 3. DOM Element Binding / Object Watching:
6363

6464
```markdown
65-
<div data-observe-watch-options="{ 'onChange': yourCustomJsFunction }">
65+
<div data-observe-js="{ 'onChange': yourCustomJsFunction }">
6666
Your HTML.
6767
</div>
6868
```
@@ -75,9 +75,9 @@ Make sure you include the "DOCTYPE html" tag at the top of your HTML, as follows
7575
</script>
7676
```
7777

78-
To see a list of all the available binding options you can use for "data-observe-watch-options", and "watch()", click [here](https://github.com/williamtroup/Observe.js/blob/main/docs/binding/options/OPTIONS.md).
78+
To see a list of all the available binding options you can use for "data-observe-js", and "watch()", click [here](https://github.com/williamtroup/Observe.js/blob/main/docs/binding/options/OPTIONS.md).
7979

80-
To see a list of all the available custom triggers you can use for "data-observe-watch-options", and "watch()", click [here](https://github.com/williamtroup/Observe.js/blob/main/docs/binding/options/CUSTOM_TRIGGERS.md).
80+
To see a list of all the available custom triggers you can use for "data-observe-js", and "watch()", click [here](https://github.com/williamtroup/Observe.js/blob/main/docs/binding/options/CUSTOM_TRIGGERS.md).
8181

8282

8383
### 4. Finishing Up:

dist/observe.export.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*! Observe.js v0.8.2 | (c) Bunoon 2024 | MIT License */
2+
var observe = {js:function() {
3+
return window.$observe;
4+
}};
5+
Object.assign(window, {observe});
6+
export{observe};

dist/observe.export.min.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/*! Observe.js v0.8.2 | (c) Bunoon 2024 | MIT License */
2+
var observe={js:function(){return window.$observe}};Object.assign(window,{observe});export{observe};

dist/observe.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/*! Observe.js v0.8.1 | (c) Bunoon 2024 | MIT License */
1+
/*! Observe.js v0.8.2 | (c) Bunoon 2024 | MIT License */
22
(function() {
3-
var _parameter_Document = null, _parameter_Window = null, _parameter_Math = null, _parameter_Json = null, _public = {}, _string = {empty:""}, _watches = {}, _watches_Cancel = false, _configuration = {}, _attribute_Name_Watch_Options = "data-observe-watch-options";
3+
var _parameter_Document = null, _parameter_Window = null, _parameter_Math = null, _parameter_Json = null, _public = {}, _string = {empty:""}, _watches = {}, _watches_Cancel = false, _configuration = {}, _attribute_Name_Watch_Options = "data-observe-js";
44
function collectDOMObjects() {
55
var tagTypes = _configuration.domElementTypes, tagTypesLength = tagTypes.length;
66
for (var tagTypeIndex = 0; tagTypeIndex < tagTypesLength; tagTypeIndex++) {
@@ -438,7 +438,7 @@
438438
_configuration.attributeNotSetErrorText = getDefaultString(_configuration.attributeNotSetErrorText, "The attribute '{{attribute_name}}' has not been set correctly.");
439439
}
440440
_public.getVersion = function() {
441-
return "0.8.1";
441+
return "0.8.2";
442442
};
443443
(function(documentObject, windowObject, mathObject, jsonObject) {
444444
_parameter_Document = documentObject;

dist/observe.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/CHANGE_LOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Observe.js - Change Log:
22

3+
## Version 0.8.2:
4+
- Added export support for the global "$observe" object, which can now be imported as "observe.js".
5+
- BREAKING: Renamed the binding attribute "data-observe-watch-options" to "data-observe-js".
6+
7+
<br>
8+
9+
310
## Version 0.8.1:
411
- The "unload" window event has been replaced with "pagehide" (due to "unload" being deprecated).
512
- The public function "setConfiguration()" will now only update the configuration if something in the configuration has been changed.

docs/binding/options/CUSTOM_TRIGGERS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Observe.js - Binding Options - Custom Triggers:
22

3-
Below is a list of all the custom triggers supported in the "data-observe-watch-options" binding attribute for DOM elements. These options are also supported when calling the public function "watch()".
3+
Below is a list of all the custom triggers supported in the "data-observe-js" binding attribute for DOM elements. These options are also supported when calling the public function "watch()".
44
<br>
55
<br>
66

@@ -48,7 +48,7 @@ Fires when a watch is started.
4848
## Binding Example:
4949

5050
```markdown
51-
<div data-observe-watch-options="{ 'onChange': yourCustomJsFunction }">
51+
<div data-observe-js="{ 'onChange': yourCustomJsFunction }">
5252
Your HTML.
5353
</div>
5454
```

docs/binding/options/OPTIONS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Observe.js - Binding Options:
22

3-
Below is a list of all the options supported in the "data-observe-watch-options" binding attribute for DOM elements. These options are also supported when calling the public function "watch()".
3+
Below is a list of all the options supported in the "data-observe-js" binding attribute for DOM elements. These options are also supported when calling the public function "watch()".
44
<br>
55
<br>
66

@@ -27,7 +27,7 @@ Below is a list of all the options supported in the "data-observe-watch-options"
2727
## Binding Example:
2828

2929
```markdown
30-
<div data-observe-watch-options="{ 'timeout': 1000 }">
30+
<div data-observe-js="{ 'timeout': 1000 }">
3131
Your HTML.
3232
</div>
3333
```

observe.js.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>jObserve.js</id>
5-
<version>0.8.1</version>
5+
<version>0.8.2</version>
66
<title>Observe.js</title>
77
<description>A lightweight JavaScript library that allows developers to keep track of changes to JavaScript objects and/or DOM elements.</description>
88
<authors>William Troup</authors>

0 commit comments

Comments
 (0)