Skip to content

Commit

Permalink
v0.1.32; fix direction="X" regression
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Feb 2, 2015
1 parent 5e9a1ce commit 630e1fc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .versions
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
gadicohen:[email protected].31-pre.3
gadicohen:[email protected].32
[email protected]
[email protected]
[email protected]
Expand All @@ -19,7 +19,7 @@ jag:[email protected]
[email protected]
[email protected]
[email protected]
local-test:gadicohen:[email protected].31-pre.3
local-test:gadicohen:[email protected].32
[email protected]
[email protected]
[email protected]
Expand Down
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## vNEXT

## v0.1.32

* Bugfix (#famous regression): direction="X" now works again

## v0.1.31

* Bugfix (#famous regression): Revert back to Blaze.render (for non-Surfaces)
Expand Down
2 changes: 1 addition & 1 deletion demo-famono/.meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
gadicohen:[email protected].31
gadicohen:[email protected].32
gadicohen:[email protected]
gadicohen:[email protected]
gadicohen:[email protected]
Expand Down
3 changes: 2 additions & 1 deletion lib/famous-views.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ var optionBlaze = function(string, key, blazeView) {

optionString = function(string, key, blazeView) {
// special handling based on special key names
if (key === 'direction' && famous.utilities.Utility.Direction[string])
if (key === 'direction' &&
typeof famous.utilities.Utility.Direction[string] !== 'undefined')
return famous.utilities.Utility.Direction[string];
if (key === 'id')
return string;
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
name: "gadicohen:famous-views",
summary: 'Blaze Views for Famous; doing Famous Meteor-style',
version: "0.1.31",
version: "0.1.32",
git: "https://github.com/gadicc/meteor-famous-views.git"
});

Expand Down
1 change: 1 addition & 0 deletions tests/famous.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Tinytest.addAsync('famous-views - famous.js - direction', function(test, complet
var optionView = null;
var optionCount = 0;
var optionTests = [
{ given: "X", expect: famous.utilities.Utility.Direction.X }, // key name (value 0)
{ given: "Y", expect: famous.utilities.Utility.Direction.Y }, // key name
{ given: "1", expect: famous.utilities.Utility.Direction.Y }, // string numeral
{ given: 1, expect: famous.utilities.Utility.Direction.Y } // number
Expand Down

0 comments on commit 630e1fc

Please sign in to comment.