Skip to content

Commit

Permalink
Merge pull request #92 from BaTbAbYDeV/attachToFix
Browse files Browse the repository at this point in the history
Attach to fix
  • Loading branch information
zackbloom committed Jan 22, 2016
2 parents b155490 + b574aba commit 7dc50f3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tether-shepherd",
"version": "1.5.1",
"version": "1.5.2",
"homepage": "https://github.com/HubSpot/shepherd",
"authors": [
"Zack Bloom <zackbloom@gmail.com>",
Expand Down
8 changes: 8 additions & 0 deletions dist/js/shepherd.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ function matchesSelector(el, sel) {
var positionRe = /^(.+) (top|left|right|bottom|center|\[[a-z ]+\])$/;

function parsePosition(str) {

if (typeof str === 'object') {
if (str.hasOwnProperty("element") && str.hasOwnProperty("on")) {
return str;
}
return null;
}

var matches = positionRe.exec(str);
if (!matches) {
return null;
Expand Down
Loading

0 comments on commit 7dc50f3

Please sign in to comment.