Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes issue #23 -- corrected the documentation around calling setDefa…

…ult and addEventBinder on $.fn instead of just $.
  • Loading branch information...
commit 3bd9e5841f8fbc1dd6a5e27429d44b661e94f378 1 parent 3b64e73
@dawsontoth dawsontoth authored
Showing with 4 additions and 3 deletions.
  1. +1 −0  CHANGELOG
  2. +3 −3 README.md
View
1  CHANGELOG
@@ -2,6 +2,7 @@ v8.3 07/26/2011
Fixed issue 21 - as of Titanium Mobile 1.7.x, the pathing approach introduced in Redux v8 is no longer necessary.
It will still be used on older versions of Titanium Mobile.
Merged pull request from mattheworiordan to fix erroneous call in inc and include (I was using call instead of apply).
+ Fixed issue 23 - $.setDefault and $.addEventBinder should be called as $.fn.setDefault and $.fn.addEventBinder.
v8.2 04/28/2011
Added "applyStyle" context sensitive function to allow for dynamic style changes;
View
6 README.md
@@ -172,8 +172,8 @@ important than default properties by element type and class names, and will over
<pre>Not Supported</pre>
**Redux Code**
-<pre>$.setDefault('#myID', { text: 'Hello, World!', color: 'red' });
-$.setDefault('.myClassName', { font: { fontSize: 12 }, color: 'green' });
+<pre>$.fn.setDefault('#myID', { text: 'Hello, World!', color: 'red' });
+$.fn.setDefault('.myClassName', { font: { fontSize: 12 }, color: 'green' });
var label = new Label({ id: 'myID', className: 'myClass', color: 'blue' });
alert(label.text == 'Hello, World!');
alert(label.color == 'blue');
@@ -203,7 +203,7 @@ You can add support for custom events.
<pre>button.addEventListener('myCustomEvent', function() { });</pre>
**Redux Code**
-<pre>$.addEventBinder('myCustomEvent'); // only needs to be called once, then can be used again and again
+<pre>$.fn.addEventBinder('myCustomEvent'); // only needs to be called once, then can be used again and again
$(button).myCustomEvent(function() { });</pre>
Please sign in to comment.
Something went wrong with that request. Please try again.