Skip to content

Commit

Permalink
move from deprecated modelAttr
Browse files Browse the repository at this point in the history
  • Loading branch information
vendethiel authored and trabianmatt committed Jan 18, 2013
1 parent c5aa3db commit 98b3dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backbone.stickit.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
// Fail fast if the selector didn't match an element.
if (!$el.length) return false;

// Allow shorthand setting of model attributes - `'selector':'modelAttr'`.
if (_.isString(config)) config = {modelAttr:config};
// Allow shorthand setting of model attributes - `'selector':'observe'`.
if (_.isString(config)) config = {observe:config};

// Keep backward-compatibility for `modelAttr` which was renamed `observe`.
modelAttr = config.observe || config.modelAttr;
Expand Down

0 comments on commit 98b3dfb

Please sign in to comment.